I used Pehtis' suggestion here:
https://discussions.apple.com/thread/5673404?start=30&tstart=0
It has worked thus far.
Here is his post
"I think i have a possible solution to this problem, at least for the MacBook Pro 2010.
To fix it you have to disable compressed memory by typing the following command in the terminal:
sudo nvram boot-args="vm_compressor=1"
and then Restarting your Mac.
I'm guessing that its a bug in the driver of the Intel HD Graphics integrated GPU used in the 2010 MacBook Pro and somehow a part of the graphics RAM is accidentally compressed. I've been testing for a day or so and so far no graphics corruption at all.
If it gets fixed in an OSX update or it doesn't work for you you can use:
sudo nvram -d boot-args
and then Restart to reenable compressed memory.
It might affect other Intel GPUs so its worth a shot if you have a similar problem."