Fix incorrect context usage for off-screen drawing. Remove kCGLCEMPEngine, which is causing flicker. Disable window redraw during resize, when rendering in the separate thread.