Browse Source

Set OpenGL context only when the parent window is visible.

pull/12/head
Maciej Suminski 10 years ago
parent
commit
22c4e4d240
  1. 4
      common/gal/opengl/opengl_gal.cpp

4
common/gal/opengl/opengl_gal.cpp

@ -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…
Cancel
Save