running OpenGL fix only when really needed
This commit is contained in:
@@ -200,6 +200,15 @@ bool wxGLContext::SetCurrent(const wxGLCanvas& win) const
|
||||
|
||||
[m_glContext makeCurrentContext];
|
||||
|
||||
// At least under macOS 10.14.5 we need to do this in order to update the
|
||||
// context with the new size information after the window is resized.
|
||||
// if ( WX_IS_MACOS_AVAILABLE_FULL(10, 14, 5) )
|
||||
{
|
||||
NSOpenGLView *v = (NSOpenGLView *)win.GetHandle();
|
||||
[v setOpenGLContext: m_glContext];
|
||||
}
|
||||
|
||||
|
||||
// At least under macOS 10.14.5 we need to do this in order to update the
|
||||
// context with the new size information after the window is resized.
|
||||
if ( WX_IS_MACOS_AVAILABLE_FULL(10, 14, 5) )
|
||||
|
Reference in New Issue
Block a user