From: havoc Date: Sun, 4 Aug 2002 20:04:22 +0000 (+0000) Subject: moved the GL_CloseLibrary call a bit X-Git-Tag: RELEASE_0_2_0_RC1~378 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=259c8a118477de2e8e31e86e7dfb0d20698b0489 moved the GL_CloseLibrary call a bit git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2193 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/vid_wgl.c b/vid_wgl.c index 9251b84b..b9a0027d 100644 --- a/vid_wgl.c +++ b/vid_wgl.c @@ -401,6 +401,9 @@ void VID_Shutdown (void) if (hRC) wglDeleteContext(hRC); + // close the library before we get rid of the window + GL_CloseLibrary(); + if (hDC && mainwindow) ReleaseDC(mainwindow, hDC); @@ -414,8 +417,6 @@ void VID_Shutdown (void) VID_RestoreSystemGamma(); } - - GL_CloseLibrary(); }