foxygit / doom Log in
commit ca81122db362eb01660598a4f3e980ed5274220d
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Fri Nov 26 18:36:48 2010 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Fri Nov 26 18:36:48 2010 +0000

    Turn double buffering on for non-palettized screen modes, as this may be
    the cause of screen tearing reports.

    Subversion-branch: /trunk/chocolate-doom
    Subversion-revision: 2169
---
 src/i_video.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/i_video.c b/src/i_video.c
index 577b7415..dab0e09d 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1601,11 +1601,11 @@ static void SetVideoMode(screen_mode_t *mode, int w, int h)

     // Set the video mode.

-    flags |= SDL_SWSURFACE;
+    flags |= SDL_SWSURFACE | SDL_DOUBLEBUF;

     if (screen_bpp == 8)
     {
-        flags |= SDL_HWPALETTE | SDL_DOUBLEBUF;
+        flags |= SDL_HWPALETTE;
     }

     if (fullscreen)