Merge pull request #2315 from nbelakovski/nbelakovski/fix_mac_opengl

Call drawRect on Mac to fix OpenGL issue
This commit is contained in:
erwincoumans
2019-07-09 08:39:41 -07:00
committed by GitHub

View File

@@ -407,6 +407,8 @@ int Mac_createWindow(struct MacOpenGLWindowInternalData* m_internalData,struct M
// OpenGL init!
[m_internalData->m_myview MakeContext : ci->m_openglVersion];
[m_internalData->m_myview drawRect: frame];
// https://developer.apple.com/library/mac/#documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/CapturingScreenContents/CapturingScreenContents.html#//apple_ref/doc/uid/TP40012302-CH10-SW1
//support HighResolutionOSX for Retina Macbook