Fix OSX canvas when used without openGL NSView