ref: 1aa66bd35de5843416c0de6a1c5d1a0ff0cb6fc2
parent: f81c93613de934a49ba60637d5ad3eca142a69a4
author: linguica <[email protected]>
date: Mon Feb 20 09:12:52 EST 2017
Add flag to activate vsync. The current SDL2 build demonstrates screen tearing, which wasn't present on the original DOS version. Turning on vsync eliminates this.
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1199,6 +1199,9 @@
// The SDL_RENDERER_TARGETTEXTURE flag is required to render the
// intermediate texture into the upscaled texture.
renderer_flags = SDL_RENDERER_TARGETTEXTURE;
+
+ // Turn on vsync
+ renderer_flags |= SDL_RENDERER_PRESENTVSYNC;
if (force_software_renderer)
{