]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_wgl.c
q3bsp is still not working yet, but getting closer
[xonotic/darkplaces.git] / vid_wgl.c
index 29091695f6fac388667645c0eac4880b8842e2b6..8bc1d781efd5d9204aa937c8362c8859f1297fd7 100644 (file)
--- a/vid_wgl.c
+++ b/vid_wgl.c
@@ -664,7 +664,7 @@ static HINSTANCE gldll;
 
 int GL_OpenLibrary(const char *name)
 {
-       Con_Printf("Loading GL driver %s\n", name);
+       Con_Printf("Loading OpenGL driver %s\n", name);
        GL_CloseLibrary();
        if (!(gldll = LoadLibrary(name)))
        {
@@ -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;
 }