Dr. Dre did NOT leave Death Row solely because of Pac. He was one of the reasons, but there were other things that perpetuated the situation before Pac. Those existing problems just sped up the process.
As you guys know, Dre was very much a big part of Death Row in the beginning, especially since he was happy to be out of the situation with Ruthless Records. But after the beef, Eazy-E's death, and his legal problems (specifically his drunk-driving incident in his Ferrari when he led police on a high-speed chase), he realized that he had outgrown the Death Row image and all the stuff associated with it, so he had less of a desire to keep putting out music for them. As a result of that, he started working at his own studio rather than at Can-Am, plus he took longer to make beats. And Death Row, caught up in its obsession with being the most unfuckwithable label on every level, was known to physically discipline people for not meeting deadlines or making mistakes, and Dre wasn't down with that. Plus once Pac, the studio prodigy, was part of the crew, acting as the opposite of Dre (putting out several songs daily, always hanging out with everybody, interested in blowing up the Death Row name), Dre only felt more isolated, and in his isolation he got attacked for something that Death Row perpetuated.