mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-18 07:22:28 +00:00
sdl2: restore vsync option (use sdl swap interval)
This commit is contained in:
parent
20f871bd84
commit
9a4b2bd360
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue