]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
possible stability improvement in VID_Shutdown - moved ChangeDisplaySettings call...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 24 May 2003 07:18:47 +0000 (07:18 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 24 May 2003 07:18:47 +0000 (07:18 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3023 d7cf8633-e32d-0410-b094-e92efae38249

vid_wgl.c

index 29091695f6fac388667645c0eac4880b8842e2b6..5df7d8deba77aed4123bf1909182ddb657d1cf47 100644 (file)
--- a/vid_wgl.c
+++ b/vid_wgl.c
@@ -992,13 +992,13 @@ void VID_Shutdown (void)
        GL_CloseLibrary();
        if (hDC && mainwindow)
                ReleaseDC(mainwindow, hDC);
-       if (vid_isfullscreen)
-               ChangeDisplaySettings (NULL, 0);
-       vid_isfullscreen = false;
        AppActivate(false, false);
        if (mainwindow)
                DestroyWindow(mainwindow);
        mainwindow = 0;
+       if (vid_isfullscreen)
+               ChangeDisplaySettings (NULL, 0);
+       vid_isfullscreen = false;
 }