diff --git a/common/gal/opengl/opengl_gal.cpp b/common/gal/opengl/opengl_gal.cpp index 5a3a41b3d8..73b1b4f805 100644 --- a/common/gal/opengl/opengl_gal.cpp +++ b/common/gal/opengl/opengl_gal.cpp @@ -130,8 +130,12 @@ OPENGL_GAL::~OPENGL_GAL() gluDeleteTess( tesselator ); ClearCache(); - if( IsShown() ) +#ifdef __LINUX__ + if( IsShownOnScreen() ) SetCurrent( *OPENGL_GAL::glContext ); +#else + SetCurrent( *OPENGL_GAL::glContext ); +#endif glFlush();