From 239503c998b9b505dec751cc8d9e1383df496b47 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Sun, 3 Jan 2016 08:38:46 +0000 Subject: [PATCH] VID_Toggle: disable the fast path entirely because it was failing on SDL2/WinXP. (640x480 fullscreen -> windowed would give a large 1280x768 window mostly filled with garbage). Previously, we were only using the fast path on old systems (no VBO support) anyway. git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1272 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/gl_vidsdl.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Quake/gl_vidsdl.c b/Quake/gl_vidsdl.c index 7e2fe738..169eba7e 100644 --- a/Quake/gl_vidsdl.c +++ b/Quake/gl_vidsdl.c @@ -1649,7 +1649,13 @@ void VID_Init (void) // new proc by S.A., called by alt-return key binding. void VID_Toggle (void) { - static qboolean vid_toggle_works = true; + // disabling the fast path completely because SDL_SetWindowFullscreen was changing + // the window size on SDL2/WinXP and we weren't set up to handle it. --ericw + // + // TODO: Clear out the dead code, reinstate the fast path using SDL_SetWindowFullscreen + // inside VID_SetMode, check window size to fix WinXP issue. This will + // keep all the mode changing code in one place. + static qboolean vid_toggle_works = false; qboolean toggleWorked; Uint32 flags = 0;