summaryrefslogtreecommitdiffstats
path: root/abs/core/sdl/SDL-1.2.15-no-default-backing-store.patch
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-12-18 15:45:15 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-12-18 15:45:15 (GMT)
commit6fa252f6628bb088c7797a77e3744a2040cfee73 (patch)
tree97908eb145bb9954cf0c07862ef7b4a8a9b2fad7 /abs/core/sdl/SDL-1.2.15-no-default-backing-store.patch
parentd450054a0e5f2dfbf9d86948b087edd0d89402c0 (diff)
downloadlinhes_pkgbuild-6fa252f6628bb088c7797a77e3744a2040cfee73.zip
linhes_pkgbuild-6fa252f6628bb088c7797a77e3744a2040cfee73.tar.gz
linhes_pkgbuild-6fa252f6628bb088c7797a77e3744a2040cfee73.tar.bz2
sdl: update to 1.2.15-7
Diffstat (limited to 'abs/core/sdl/SDL-1.2.15-no-default-backing-store.patch')
-rw-r--r--abs/core/sdl/SDL-1.2.15-no-default-backing-store.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/abs/core/sdl/SDL-1.2.15-no-default-backing-store.patch b/abs/core/sdl/SDL-1.2.15-no-default-backing-store.patch
new file mode 100644
index 0000000..4d5209d
--- /dev/null
+++ b/abs/core/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 */