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:
@@ -403,6 +403,8 @@ int Mac_createWindow(struct MacOpenGLWindowInternalData* m_internalData,struct M
|
|||||||
|
|
||||||
// OpenGL init!
|
// OpenGL init!
|
||||||
[m_internalData->m_myview MakeContext : ci->m_openglVersion];
|
[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
|
// 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
|
//support HighResolutionOSX for Retina Macbook
|
||||||
|
|||||||
Reference in New Issue
Block a user