make current before releasing
This commit is contained in:
parent
774b6018d5
commit
4c142c3a4a
|
|
@ -100,6 +100,7 @@ make_gsg() {
|
|||
void glxGraphicsWindow::
|
||||
release_gsg() {
|
||||
if (_gsg != (GraphicsStateGuardian *)NULL) {
|
||||
glXMakeCurrent(_display, _xwindow, _context);
|
||||
GraphicsWindow::release_gsg();
|
||||
glXDestroyContext(_display, _context);
|
||||
_context = (GLXContext)0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue