gl_vidsdl.c (VID_SyncCvars): set vid_vsync to 1 only if the received value

is positive, not "not zero".

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@579 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Ozkan Sezer 2011-12-30 00:10:16 +00:00
parent 6c341b9ed0
commit 72efc8e384

View file

@ -1399,7 +1399,7 @@ void VID_SyncCvars (void)
Cvar_SetQuick (&vid_fullscreen, (windowed) ? "0" : "1");
if (SDL_GL_GetAttribute(SDL_GL_SWAP_CONTROL, &swap_control) == 0)
Cvar_SetQuick (&vid_vsync, (swap_control) ? "1" : "0");
Cvar_SetQuick (&vid_vsync, (swap_control > 0)? "1" : "0");
}
//==========================================================================