summaryrefslogtreecommitdiff
path: root/media-libs/allegro/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-10-13 22:19:36 +0100
committerV3n3RiX <venerix@redcorelinux.org>2019-10-14 23:22:23 +0100
commit4b19be30aa626b327c885dae62c559ec0e9fb935 (patch)
tree76e74807bc479502e13866b581b6bf86734ec634 /media-libs/allegro/files
parent30d6f67c98d149508509d5e86f176d558793acc0 (diff)
gentoo resync : 13.10.2019
Diffstat (limited to 'media-libs/allegro/files')
-rw-r--r--media-libs/allegro/files/allegro-4.4.2-GLX_RGBA_FLOAT_BIT.patch20
-rw-r--r--media-libs/allegro/files/allegro-4.4.2-static-func.patch13
2 files changed, 33 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) {
diff --git a/media-libs/allegro/files/allegro-4.4.2-static-func.patch b/media-libs/allegro/files/allegro-4.4.2-static-func.patch
new file mode 100644
index 000000000000..ac107d387d56
--- /dev/null
+++ b/media-libs/allegro/files/allegro-4.4.2-static-func.patch
@@ -0,0 +1,13 @@
+https://sourceforge.net/p/alleg/bugs/398/
+
+--- a/addons/jpgalleg/src/decode.c 2008-02-13 14:04:57.000000000 +0100
++++ b/addons/jpgalleg/src/decode.c 2015-09-03 14:57:57.888485546 +0200
+@@ -477,7 +477,7 @@
+ * Reads a string of bits from the input stream and returns a properly signed
+ * number given the category.
+ */
+-INLINE int
++static INLINE int
+ get_value(int category)
+ {
+ int result = get_bits(category);