Fix slow opengl canvas on Mac OS 10.9.