summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2010-11-26 18:36:48 +0000
committerSimon Howard2010-11-26 18:36:48 +0000
commitca81122db362eb01660598a4f3e980ed5274220d (patch)
tree381ecc3130bfd5e28321756965289da30c06b4ba
parent9de2b29cdc8e85c525589badc5af636005ca8e66 (diff)
downloadchocolate-doom-ca81122db362eb01660598a4f3e980ed5274220d.tar.gz
chocolate-doom-ca81122db362eb01660598a4f3e980ed5274220d.tar.bz2
chocolate-doom-ca81122db362eb01660598a4f3e980ed5274220d.zip
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
-rw-r--r--src/i_video.c4
1 files 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)