Fix Windows (and macOS?) build error caused by 11f4622ea
This commit is contained in:
parent
36e400ec5b
commit
cf373e543f
|
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue