summaryrefslogtreecommitdiff
path: root/libre/sdl/SDL-1.2.15-no-default-backing-store.patch
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2014-09-30 23:35:51 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2014-09-30 23:35:51 -0400
commit2d3e592da3ea7517e48f4a253d3621a4a4e2a5d9 (patch)
tree84ba56e0f5d4c60ee48800546539a0c7360e2cad /libre/sdl/SDL-1.2.15-no-default-backing-store.patch
parent77b540c3dd5583081493304a0481808cd5cb0c03 (diff)
parent272855c0b93e2c37030a145d0d502f55d6abfd00 (diff)
downloadabslibre-2d3e592da3ea7517e48f4a253d3621a4a4e2a5d9.tar.gz
abslibre-2d3e592da3ea7517e48f4a253d3621a4a4e2a5d9.tar.bz2
abslibre-2d3e592da3ea7517e48f4a253d3621a4a4e2a5d9.zip
Merge branch 'master' of git://lukeshu.com/mirror/parabola/abslibre
Diffstat (limited to 'libre/sdl/SDL-1.2.15-no-default-backing-store.patch')
-rw-r--r--libre/sdl/SDL-1.2.15-no-default-backing-store.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/libre/sdl/SDL-1.2.15-no-default-backing-store.patch b/libre/sdl/SDL-1.2.15-no-default-backing-store.patch
new file mode 100644
index 000000000..4d5209d1e
--- /dev/null
+++ b/libre/sdl/SDL-1.2.15-no-default-backing-store.patch
@@ -0,0 +1,24 @@
+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>
+
+diff -up SDL-1.2.15/src/video/x11/SDL_x11video.c.jx SDL-1.2.15/src/video/x11/SDL_x11video.c
+--- SDL-1.2.15/src/video/x11/SDL_x11video.c.jx 2012-01-19 01:30:06.000000000 -0500
++++ SDL-1.2.15/src/video/x11/SDL_x11video.c 2014-03-04 14:39:34.691545549 -0500
+@@ -1088,7 +1088,7 @@ static int X11_CreateWindow(_THIS, SDL_S
+ }
+ }
+
+-#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 */