mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-13 23:40:58 +00:00
Fix vsync saving/loading (take three...)
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@780 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
9a8d715124
commit
f04f0d9684
1 changed files with 7 additions and 0 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue