Kaydet (Commit) 7ce77fcf authored tarafından Markus Mohrhard's avatar Markus Mohrhard

prevent crash with non-vcl OpenGL contexts

Change-Id: Ia829b0f723c8ded1237e52d48f034da3c1ac249e
üst 24560df3
...@@ -1422,7 +1422,8 @@ void OpenGLContext::resetCurrent() ...@@ -1422,7 +1422,8 @@ void OpenGLContext::resetCurrent()
#elif defined( IOS ) || defined( ANDROID ) || defined(LIBO_HEADLESS) #elif defined( IOS ) || defined( ANDROID ) || defined(LIBO_HEADLESS)
// nothing // nothing
#elif defined( UNX ) #elif defined( UNX )
glXMakeCurrent(m_aGLWin.dpy, None, NULL); if (m_aGLWin.dpy)
glXMakeCurrent(m_aGLWin.dpy, None, NULL);
#endif #endif
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment