mirror of https://github.com/encounter/SDL.git
4549769d7d
Currently, if an application wants to toggle VSync, they'd have to tear down the renderer and recreate it. This patch fixes that by letting applications call SDL_RenderSetVSync(). This is the same as the patch in #3673, except it applies to all renderers (including PSP, even thought it seems that the VSync flag is disabled for that renderer). Furthermore, the renderer flags also change as well, which #3673 didn't do. It is also an API instead of using hint callbacks (which could be potentially dangerous). Closes #3673. |
||
---|---|---|
.. | ||
direct3d | ||
direct3d11 | ||
metal | ||
opengl | ||
opengles | ||
opengles2 | ||
psp | ||
software | ||
vitagxm | ||
SDL_d3dmath.c | ||
SDL_d3dmath.h | ||
SDL_render.c | ||
SDL_sysrender.h | ||
SDL_yuv_sw.c | ||
SDL_yuv_sw_c.h |