mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-24 18:21:17 +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;*/
|
oldwaitvbl = waitvbl;*/
|
||||||
|
|
||||||
|
if (oldwaitvbl != waitvbl)
|
||||||
|
{
|
||||||
|
SDL_GL_SetSwapInterval(waitvbl ? 1 : 0);
|
||||||
|
}
|
||||||
|
oldwaitvbl = waitvbl;
|
||||||
|
|
||||||
SDL_GL_SwapWindow(window);
|
SDL_GL_SwapWindow(window);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue