From 4c142c3a4aa9c842a2d3e6e4ea4806f36e9f0cfe Mon Sep 17 00:00:00 2001 From: David Rose Date: Sat, 11 Jan 2003 18:08:19 +0000 Subject: [PATCH] make current before releasing --- panda/src/glxdisplay/glxGraphicsWindow.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/panda/src/glxdisplay/glxGraphicsWindow.cxx b/panda/src/glxdisplay/glxGraphicsWindow.cxx index 6900c80e40..6d887ddba3 100644 --- a/panda/src/glxdisplay/glxGraphicsWindow.cxx +++ b/panda/src/glxdisplay/glxGraphicsWindow.cxx @@ -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;