make current before releasing

This commit is contained in:
David Rose 2003-01-11 18:08:19 +00:00
parent 774b6018d5
commit 4c142c3a4a

View File

@ -100,6 +100,7 @@ make_gsg() {
void glxGraphicsWindow:: void glxGraphicsWindow::
release_gsg() { release_gsg() {
if (_gsg != (GraphicsStateGuardian *)NULL) { if (_gsg != (GraphicsStateGuardian *)NULL) {
glXMakeCurrent(_display, _xwindow, _context);
GraphicsWindow::release_gsg(); GraphicsWindow::release_gsg();
glXDestroyContext(_display, _context); glXDestroyContext(_display, _context);
_context = (GLXContext)0; _context = (GLXContext)0;