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:
sezero 2011-12-29 23:05:12 +00:00
parent a231934c83
commit e3c4bd04ca
2 changed files with 4 additions and 12 deletions

View file

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

View file

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