foxygit / doom Log in
commit 413f4ecd7aae41229cc7b40ea3275970dc18cdb4
Author:     Fabian Greffrath <fabian@greffrath.com>
AuthorDate: Sat Nov 4 13:32:15 2017 +0100
Commit:     Fabian Greffrath <fabian@greffrath.com>
CommitDate: Sat Nov 4 13:32:15 2017 +0100

    video: disable VSYNC if software rendering is enforced

    Fixes #955, thanks @JNechaevsky
---
 src/i_video.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/i_video.c b/src/i_video.c
index 49e04c5a..95281419 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1220,6 +1220,7 @@ static void SetVideoMode(void)
     if (force_software_renderer)
     {
         renderer_flags |= SDL_RENDERER_SOFTWARE;
+        renderer_flags &= ~SDL_RENDERER_PRESENTVSYNC;
     }

     if (renderer != NULL)