Browse Source

make current before releasing

David Rose 23 years ago
parent
commit
4c142c3a4a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      panda/src/glxdisplay/glxGraphicsWindow.cxx

+ 1 - 0
panda/src/glxdisplay/glxGraphicsWindow.cxx

@@ -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;