Screen Freezing With Boxes on iMac
This is the second time this has started to happen in the last month. It starts out with my screen freezing while I'm using the computer or after waking it up but everything else is still working like if I'm playing music in the background it doesn't stop playing but the screen freezes and looks like this:
So I do a cold boot and it looks like this:
This is where I'm at currently as the PRAM reset and starting into safe mode does nothing. The last time this happened a couple of weeks ago I ended up wiping the system and reinstalling the OS from scratch. The problem went away which makes me think that it is software / driver related but then again if I knew what it was I wouldn't be here asking.
Any help would be appreciated, thank you in advance.
iMac, OS X Yosemite (10.10.5)