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:
@@ -404,6 +404,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
|
||||
if (ci->m_openglVersion>=3)
|
||||
|
||||
Reference in New Issue
Block a user