sdl2: restore vsync option (use sdl swap interval)

This commit is contained in:
Ronald Kinard 2014-07-23 19:46:12 -05:00
parent 20f871bd84
commit 9a4b2bd360
1 changed files with 6 additions and 0 deletions

View File

@ -247,6 +247,12 @@ void OglSdlFinishUpdate(boolean waitvbl)
}
oldwaitvbl = waitvbl;*/
if (oldwaitvbl != waitvbl)
{
SDL_GL_SetSwapInterval(waitvbl ? 1 : 0);
}
oldwaitvbl = waitvbl;
SDL_GL_SwapWindow(window);
}