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
This commit is contained in:
Eric Wasylishen 2016-01-03 08:38:46 +00:00
parent b30a347a20
commit 239503c998

View file

@ -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;