Set OpenGL context only when the parent window is visible.
This commit is contained in:
parent
55976e39ef
commit
22c4e4d240
|
@ -302,7 +302,9 @@ void OPENGL_GAL::EndDrawing()
|
||||||
|
|
||||||
void OPENGL_GAL::BeginUpdate()
|
void OPENGL_GAL::BeginUpdate()
|
||||||
{
|
{
|
||||||
|
if( IsShownOnScreen() )
|
||||||
SetCurrent( *OPENGL_GAL::glContext );
|
SetCurrent( *OPENGL_GAL::glContext );
|
||||||
|
|
||||||
cachedManager.Map();
|
cachedManager.Map();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue