added re-creating renderer and textures when changing video vsync mode
authorHolger Schemel <info@artsoft.org>
Sat, 5 Sep 2020 19:25:24 +0000 (21:25 +0200)
committerHolger Schemel <info@artsoft.org>
Sat, 5 Sep 2020 19:30:33 +0000 (21:30 +0200)
commit2d298d8e6d16600c4ea7cdbdc08508098f0218ef
treef88ba63978358a89749987c1e6f534ef0b6cb45f
parent3eb5d3a10dc341e94a1290bbe1f9735e18e83e5f
added re-creating renderer and textures when changing video vsync mode

When not using OpenGL renderer, changing video vsync mode requires
re-creating renderer and textures with changed vsync settings.

(This uses code for re-creating the screen that was a part of function
"ToggleFullscreenOrChangeWindowScalingIfNeeded()", but that was never
used after support for SDL 1.2 was removed with commit d3e24bbf.)
src/screens.c
src/tools.c
src/tools.h