Call drawRect on Mac to fix OpenGL issue

This fixes an issue on Mac where an OpenGL window doesn't show anything until it is resized.
This commit is contained in:
nbelakovski
2019-07-06 20:34:22 -07:00
committed by GitHub
parent 1dcacbb64e
commit 3b4831089b

View File

@@ -403,6 +403,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