From ca81122db362eb01660598a4f3e980ed5274220d Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Fri, 26 Nov 2010 18:36:48 +0000 Subject: 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(-) (limited to 'src/i_video.c') 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) -- cgit v1.2.3