Browse Source

Set OpenGL context before freeing video resources.

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

1
common/gal/opengl/opengl_gal.cpp

@ -127,6 +127,7 @@ OPENGL_GAL::OPENGL_GAL( wxWindow* aParent, wxEvtHandler* aMouseListener,
OPENGL_GAL::~OPENGL_GAL()
{
SetCurrent( *OPENGL_GAL::glContext );
glFlush();
if( --instanceCounter == 0 )

Loading…
Cancel
Save