shithub: choc

Download patch

ref: 66b66773dbb572503a478ce50b976eb6764d20cb
parent: f81c93613de934a49ba60637d5ad3eca142a69a4
parent: 1aa66bd35de5843416c0de6a1c5d1a0ff0cb6fc2
author: Jonathan Dowland <jon+github@alcopop.org>
date: Mon Feb 20 17:23:51 EST 2017

Merge pull request #869 from linguica/patch-2

Add flag to activate vsync. Fixes #868

--- 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)
     {