diff --git a/quakespasm/Quake/gl_vidsdl.c b/quakespasm/Quake/gl_vidsdl.c index a141b9fb..7fecd8d1 100644 --- a/quakespasm/Quake/gl_vidsdl.c +++ b/quakespasm/Quake/gl_vidsdl.c @@ -761,6 +761,13 @@ static void GL_Init (void) #endif GL_SetupState (); //johnfitz + + // set vertical sync + if (gl_swap_control) + { + if (SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, (vid_vsync.value) ? 1 : 0) == -1) + Con_Printf ("Unable to set swap control\n"); + } } /*