ref: ca81122db362eb01660598a4f3e980ed5274220d
parent: 9de2b29cdc8e85c525589badc5af636005ca8e66
author: Simon Howard <[email protected]>
date: Fri Nov 26 13:36:48 EST 2010
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
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1601,11 +1601,11 @@
// 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)