Procházet zdrojové kódy

*** empty log message ***

David Rose před 25 roky
rodič
revize
62f1fc0882
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 4 1
      panda/src/wgldisplay/wglGraphicsWindow.cxx

+ 4 - 1
panda/src/wgldisplay/wglGraphicsWindow.cxx

@@ -55,7 +55,10 @@ wglGraphicsWindow::~wglGraphicsWindow(void) {
 //  DestroyWindow(_mwindow);
 //  DestroyWindow(_mwindow);
   if(_visual!=NULL)
   if(_visual!=NULL)
     free(_visual);
     free(_visual);
-  wglDeleteContext(_context);
+
+  // The GL context is already gone.  Don't try to destroy it again.
+  //  wglDeleteContext(_context);
+
   ReleaseDC(_mwindow,_hdc);
   ReleaseDC(_mwindow,_hdc);
   DestroyWindow(_mwindow);
   DestroyWindow(_mwindow);
 }
 }