]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_wgl.c
removed fxmesa support (3dfx svgalib) because no one used it to my knowledge, and...
[xonotic/darkplaces.git] / vid_wgl.c
index 4979397a3daacf3410be3747e01361bef230f29e..b9a0027d31c72748fbe57d48ec7096c43c40d424 100644 (file)
--- 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();
 }
 
 
@@ -539,7 +540,7 @@ void AppActivate(BOOL fActive, BOOL minimize)
        static BOOL     sound_active;
 
        vid_activewindow = fActive;
-       Minimized = minimize;
+       vid_hidden = minimize;
 
 // enable/disable sound on focus gain/loss
        if (!vid_activewindow && sound_active)