diff --git a/Quake/gl_vidnt.c b/Quake/gl_vidnt.c index d2897a0b..19b47763 100644 --- a/Quake/gl_vidnt.c +++ b/Quake/gl_vidnt.c @@ -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; } } diff --git a/Quake/gl_vidsdl.c b/Quake/gl_vidsdl.c index 5ae253cd..eb401085 100644 --- a/Quake/gl_vidsdl.c +++ b/Quake/gl_vidsdl.c @@ -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; } }