33 lines
1.3 KiB
Diff
33 lines
1.3 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
|
|
Date: Tue, 31 Aug 2021 22:40:44 +0000
|
|
Subject: [PATCH] SDL-1.2.15-no-default-backing-store
|
|
|
|
Do not harness backing store by default
|
|
|
|
xorg-server 1.15 enables backing store if composite extension is enabled
|
|
(default settings). Harnessing backing store through compositor leads to
|
|
tearing effect.
|
|
|
|
This patch reverts default harnessing backing store to conditional use if
|
|
SDL_VIDEO_X11_BACKINGSTORE environment variable exists.
|
|
|
|
<https://bugzilla.libsdl.org/show_bug.cgi?id=2383>
|
|
<https://bugzilla.redhat.com/show_bug.cgi?id=1073057>
|
|
---
|
|
src/video/x11/SDL_x11video.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/video/x11/SDL_x11video.c b/src/video/x11/SDL_x11video.c
|
|
index bbf0d5d0ffc9..c365e7a2ab72 100644
|
|
--- a/src/video/x11/SDL_x11video.c
|
|
+++ b/src/video/x11/SDL_x11video.c
|
|
@@ -1093,7 +1093,7 @@ static int X11_CreateWindow(_THIS, SDL_Surface *screen,
|
|
}
|
|
}
|
|
|
|
-#if 0 /* This is an experiment - are the graphics faster now? - nope. */
|
|
+#if 1 /* This is an experiment - are the graphics faster now? - nope. */
|
|
if ( SDL_getenv("SDL_VIDEO_X11_BACKINGSTORE") )
|
|
#endif
|
|
/* Cache the window in the server, when possible */
|