minor typo fixes for vsync related messages.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@578 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Ozkan Sezer 2011-12-29 23:05:12 +00:00
parent f6d96cf7e9
commit 6c341b9ed0
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");
else
{
Con_Printf("FOUND: WGL_EXT_swap_control\n");
Con_Printf("FOUND: GL_EXT_swap_control\n");
gl_swap_control = true;
}
}

View File

@ -267,16 +267,8 @@ int VID_SetMode (int modenum)
// set vertical sync
if (gl_swap_control)
{
if (vid_vsync.value)
{
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 (SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, (vid_vsync.value) ? 1 : 0) == -1)
Con_Printf ("Unable to set swap control\n");
}
if (modelist[modenum].type == MODE_WINDOWED)
@ -667,7 +659,7 @@ void GL_CheckExtensions (void)
}
else
{
Con_Printf("FOUND: WGL_EXT_swap_control\n");
Con_Printf("FOUND: GL_EXT_swap_control\n");
gl_swap_control = true;
}
}