Set OpenGL context only when the parent window is visible.

This commit is contained in:
Maciej Suminski 2016-05-03 16:39:58 +02:00
parent 55976e39ef
commit 22c4e4d240
1 changed files with 3 additions and 1 deletions

View File

@ -302,7 +302,9 @@ void OPENGL_GAL::EndDrawing()
void OPENGL_GAL::BeginUpdate()
{
SetCurrent( *OPENGL_GAL::glContext );
if( IsShownOnScreen() )
SetCurrent( *OPENGL_GAL::glContext );
cachedManager.Map();
}