From: havoc Date: Sat, 24 May 2003 07:18:47 +0000 (+0000) Subject: possible stability improvement in VID_Shutdown - moved ChangeDisplaySettings call... X-Git-Tag: xonotic-v0.1.0preview~6628 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d4c2e424cc735b71e62f0bc1faae5d93d8cba2f0;p=xonotic%2Fdarkplaces.git possible stability improvement in VID_Shutdown - moved ChangeDisplaySettings call after DestroyWindow git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3023 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/vid_wgl.c b/vid_wgl.c index 29091695..5df7d8de 100644 --- 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; }