mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01: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;*/
|
oldwaitvbl = waitvbl;*/
|
||||||
|
|
||||||
|
if (oldwaitvbl != waitvbl)
|
||||||
|
{
|
||||||
|
SDL_GL_SetSwapInterval(waitvbl ? 1 : 0);
|
||||||
|
}
|
||||||
|
oldwaitvbl = waitvbl;
|
||||||
|
|
||||||
SDL_GL_SwapWindow(window);
|
SDL_GL_SwapWindow(window);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue