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()
|
||||
{
|
||||
SetCurrent( *OPENGL_GAL::glContext );
|
||||
if( IsShownOnScreen() )
|
||||
SetCurrent( *OPENGL_GAL::glContext );
|
||||
|
||||
cachedManager.Map();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue