Quickfix for Uncaught SecurityError: Failed to execute 'texImage2D' on 'WebGLRenderingContext': Tainted canvases may not be loaded.

Here's a quick tip which had me stumped for 20mins, and could not find an answer on the internet quickly.

If you are attempting to draw an image that you have received cross-origin onto a canvas, and receive the error:

Quickfix for Uncaught SecurityError: Failed to execute 'texImage2D' on 'WebGLRenderingContext': Tainted canvases may not be loaded.

Along with making sure your cross-origin server has the appropriate headers (see enable cross-origin resource sharing), make sure you also manually set the crossOrigin property on the image you're loading in:

var image = new Image(); image.crossOrigin = 'Anonymous'; image.src = 'http://someotherdomain.com/image.png';

See the MDN article about CORS enabled images for more info on a "tainted" canvas.

 

Fix Yosemite's sluggish performance in VMWare Fusion

I found running Yosemite (OS X 10.10) in a virtual machine via VMWare Fusion to be unbearably sluggish. If I did not login to the VM within a couple of seconds, the entire OS would freeze. The solution isn't about how 3d acceleration is disabled, but rather involves disabling Beam Sync, which is Apple's v-sync implementation.

I came across this forum post on InsanelyMac, where JasF has posted a build of his BeamOff software, which effectively disables Beam Sync. There is more info in this SuperUser question.

Install VMWare Tools, then download and run this build. It is advised to then add it to your Login items, so it boots at login. It will help alleviate the sluggish UI problems and improve performace.

Note the OP mentions this doesn't make Yosemite run as fast as Mavericks can when virtualized. But from my experience, BeamOff has definitely improved Yosemite VM performance enough for basic OS use.