Set OpenGL context before freeing video resources.
This commit is contained in:
parent
59fe8df269
commit
c506d2b16c
|
@ -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…
Reference in New Issue