From 62f1fc0882acaeb3b0e3bb5d70f55c307c56e5c4 Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 2 May 2001 21:49:41 +0000 Subject: [PATCH] *** empty log message *** --- panda/src/wgldisplay/wglGraphicsWindow.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/panda/src/wgldisplay/wglGraphicsWindow.cxx b/panda/src/wgldisplay/wglGraphicsWindow.cxx index 4e3a058a28..5afef6e588 100644 --- a/panda/src/wgldisplay/wglGraphicsWindow.cxx +++ b/panda/src/wgldisplay/wglGraphicsWindow.cxx @@ -55,7 +55,10 @@ wglGraphicsWindow::~wglGraphicsWindow(void) { // DestroyWindow(_mwindow); if(_visual!=NULL) free(_visual); - wglDeleteContext(_context); + + // The GL context is already gone. Don't try to destroy it again. + // wglDeleteContext(_context); + ReleaseDC(_mwindow,_hdc); DestroyWindow(_mwindow); }