mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-09 01:01:07 +00:00
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:
parent
6c341b9ed0
commit
72efc8e384
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
Loading…
Reference in a new issue