Fix Windows (and macOS?) build error caused by 11f4622ea

This commit is contained in:
Chris Pavlina 2017-03-07 17:51:25 -05:00
parent 36e400ec5b
commit cf373e543f
1 changed files with 2 additions and 0 deletions

View File

@ -80,7 +80,9 @@ void GL_CONTEXT_MANAGER::LockCtx( wxGLContext* aContext, wxGLCanvas* aCanvas )
wxGLCanvas* canvas = aCanvas ? aCanvas : m_glContexts.at( aContext ); wxGLCanvas* canvas = aCanvas ? aCanvas : m_glContexts.at( aContext );
// Prevent assertion failure in wxGLContext::SetCurrent during GAL teardown // Prevent assertion failure in wxGLContext::SetCurrent during GAL teardown
#ifdef __WXGTK__
if( canvas->GetXWindow() ) if( canvas->GetXWindow() )
#endif
{ {
canvas->SetCurrent( *aContext ); canvas->SetCurrent( *aContext );
} }