Horrible hack to work around OSX openGL swap intervals not working correctly when the window is occluded.