From d4c2e424cc735b71e62f0bc1faae5d93d8cba2f0 Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 24 May 2003 07:18:47 +0000 Subject: [PATCH] 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 --- vid_wgl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.39.2