sdl2: restore vsync option (use sdl swap interval)
This commit is contained in:
parent
20f871bd84
commit
9a4b2bd360
|
@ -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 New Issue