1 |
commit: cb16966c9885f4a3f8a9f257dc890853bd1e46de |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 30 21:00:18 2019 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 30 21:33:46 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb16966c |
7 |
|
8 |
media-libs/allegro: Patch around GLX_RGBA_FLOAT_BIT issue in 4.4.2 |
9 |
|
10 |
Thanks to Pablo Yanez Trujillo for the patch. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/672858 |
13 |
Package-Manager: Portage-2.3.76, Repoman-2.3.17 |
14 |
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> |
15 |
|
16 |
media-libs/allegro/allegro-4.4.2-r2.ebuild | 1 + |
17 |
.../files/allegro-4.4.2-GLX_RGBA_FLOAT_BIT.patch | 20 ++++++++++++++++++++ |
18 |
2 files changed, 21 insertions(+) |
19 |
|
20 |
diff --git a/media-libs/allegro/allegro-4.4.2-r2.ebuild b/media-libs/allegro/allegro-4.4.2-r2.ebuild |
21 |
index 5797f5829b3..dba29ec2a94 100644 |
22 |
--- a/media-libs/allegro/allegro-4.4.2-r2.ebuild |
23 |
+++ b/media-libs/allegro/allegro-4.4.2-r2.ebuild |
24 |
@@ -46,6 +46,7 @@ PATCHES=( |
25 |
"${FILESDIR}"/${P}-rpath.patch |
26 |
"${FILESDIR}"/${P}-Werror-format-security.patch # bug 540470 |
27 |
"${FILESDIR}"/${P}-glibc228.patch # bug 670781 |
28 |
+ "${FILESDIR}"/${P}-GLX_RGBA_FLOAT_BIT.patch # bug 672858 |
29 |
) |
30 |
|
31 |
src_prepare() { |
32 |
|
33 |
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 |
34 |
new file mode 100644 |
35 |
index 00000000000..54ff4f97fbb |
36 |
--- /dev/null |
37 |
+++ b/media-libs/allegro/files/allegro-4.4.2-GLX_RGBA_FLOAT_BIT.patch |
38 |
@@ -0,0 +1,20 @@ |
39 |
+--- a/addons/allegrogl/src/x.c 2019-01-27 20:35:26.209055856 +0100 |
40 |
++++ b/addons/allegrogl/src/x.c 2019-01-27 20:38:54.135570782 +0100 |
41 |
+@@ -650,7 +650,7 @@ |
42 |
+ return -1; |
43 |
+ } |
44 |
+ |
45 |
+- if (!(render_type & GLX_RGBA_BIT) && !(render_type & GLX_RGBA_FLOAT_BIT)) { |
46 |
++ if (!(render_type & GLX_RGBA_BIT) && !(render_type & GLX_RGBA_FLOAT_BIT_ARB)) { |
47 |
+ TRACE(PREFIX_I "decode_fbconfig: Not RGBA mode\n"); |
48 |
+ return -1; |
49 |
+ } |
50 |
+@@ -674,7 +674,7 @@ |
51 |
+ /* Floating-point depth is not supported as glx extension (yet). */ |
52 |
+ i->float_depth = 0; |
53 |
+ |
54 |
+- i->float_color = (render_type & GLX_RGBA_FLOAT_BIT); |
55 |
++ i->float_color = (render_type & GLX_RGBA_FLOAT_BIT_ARB); |
56 |
+ |
57 |
+ v = glXGetVisualFromFBConfig(_xwin.display, fbc); |
58 |
+ if (!v) { |