summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2019-09-30 22:00:18 +0100
committerJames Le Cuirot <chewi@gentoo.org>2019-09-30 22:33:46 +0100
commitcb16966c9885f4a3f8a9f257dc890853bd1e46de (patch)
tree520dcd3370792bcc18a88779241ae3586e137c94 /media-libs/allegro/files
parentgames-strategy/satellite-reign: Add missing unzip dependency (diff)
downloadgentoo-cb16966c9885f4a3f8a9f257dc890853bd1e46de.tar.gz
gentoo-cb16966c9885f4a3f8a9f257dc890853bd1e46de.tar.bz2
gentoo-cb16966c9885f4a3f8a9f257dc890853bd1e46de.zip
media-libs/allegro: Patch around GLX_RGBA_FLOAT_BIT issue in 4.4.2
Thanks to Pablo Yanez Trujillo for the patch. Closes: https://bugs.gentoo.org/672858 Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'media-libs/allegro/files')
-rw-r--r--media-libs/allegro/files/allegro-4.4.2-GLX_RGBA_FLOAT_BIT.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/media-libs/allegro/files/allegro-4.4.2-GLX_RGBA_FLOAT_BIT.patch b/media-libs/allegro/files/allegro-4.4.2-GLX_RGBA_FLOAT_BIT.patch
new file mode 100644
index 000000000000..54ff4f97fbb1
--- /dev/null
+++ b/media-libs/allegro/files/allegro-4.4.2-GLX_RGBA_FLOAT_BIT.patch
@@ -0,0 +1,20 @@
+--- a/addons/allegrogl/src/x.c 2019-01-27 20:35:26.209055856 +0100
++++ b/addons/allegrogl/src/x.c 2019-01-27 20:38:54.135570782 +0100
+@@ -650,7 +650,7 @@
+ return -1;
+ }
+
+- if (!(render_type & GLX_RGBA_BIT) && !(render_type & GLX_RGBA_FLOAT_BIT)) {
++ if (!(render_type & GLX_RGBA_BIT) && !(render_type & GLX_RGBA_FLOAT_BIT_ARB)) {
+ TRACE(PREFIX_I "decode_fbconfig: Not RGBA mode\n");
+ return -1;
+ }
+@@ -674,7 +674,7 @@
+ /* Floating-point depth is not supported as glx extension (yet). */
+ i->float_depth = 0;
+
+- i->float_color = (render_type & GLX_RGBA_FLOAT_BIT);
++ i->float_color = (render_type & GLX_RGBA_FLOAT_BIT_ARB);
+
+ v = glXGetVisualFromFBConfig(_xwin.display, fbc);
+ if (!v) {