mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-14 17:10:53 +00:00
minor typo fixes for vsync related messages.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@578 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
a231934c83
commit
e3c4bd04ca
2 changed files with 4 additions and 12 deletions
|
@ -1063,7 +1063,7 @@ void GL_CheckExtensions (void)
|
||||||
Con_Warning ("vertical sync not supported (swap interval is -1.) Make sure you don't have vertical sync disabled in your driver settings.\n");
|
Con_Warning ("vertical sync not supported (swap interval is -1.) Make sure you don't have vertical sync disabled in your driver settings.\n");
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Con_Printf("FOUND: WGL_EXT_swap_control\n");
|
Con_Printf("FOUND: GL_EXT_swap_control\n");
|
||||||
gl_swap_control = true;
|
gl_swap_control = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -267,16 +267,8 @@ int VID_SetMode (int modenum)
|
||||||
// set vertical sync
|
// set vertical sync
|
||||||
if (gl_swap_control)
|
if (gl_swap_control)
|
||||||
{
|
{
|
||||||
if (vid_vsync.value)
|
if (SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, (vid_vsync.value) ? 1 : 0) == -1)
|
||||||
{
|
Con_Printf ("Unable to set swap control\n");
|
||||||
if (SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1) == -1)
|
|
||||||
Con_Printf ("VID_Vsync_f: failed on SDL_GL_SetAttribute\n");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 0) == -1)
|
|
||||||
Con_Printf ("VID_Vsync_f: failed on SDL_GL_SetAttribute\n");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (modelist[modenum].type == MODE_WINDOWED)
|
if (modelist[modenum].type == MODE_WINDOWED)
|
||||||
|
@ -667,7 +659,7 @@ void GL_CheckExtensions (void)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Con_Printf("FOUND: WGL_EXT_swap_control\n");
|
Con_Printf("FOUND: GL_EXT_swap_control\n");
|
||||||
gl_swap_control = true;
|
gl_swap_control = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue