summaryrefslogtreecommitdiff
path: root/0001-glx-Add-another-fallback-library-name.patch
diff options
context:
space:
mode:
Diffstat (limited to '0001-glx-Add-another-fallback-library-name.patch')
-rw-r--r--0001-glx-Add-another-fallback-library-name.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/0001-glx-Add-another-fallback-library-name.patch b/0001-glx-Add-another-fallback-library-name.patch
new file mode 100644
index 0000000..0c8cb95
--- /dev/null
+++ b/0001-glx-Add-another-fallback-library-name.patch
@@ -0,0 +1,30 @@
+From 24606973bfabd75285fbd489264235167ba0f44c Mon Sep 17 00:00:00 2001
+From: Adam Jackson <ajax@redhat.com>
+Date: Thu, 14 Jun 2018 11:25:21 -0400
+Subject: [PATCH] glx: Add another fallback library name
+
+This is mostly to avoid file conflicts with external packaging.
+
+Signed-off-by: Adam Jackson <ajax@redhat.com>
+---
+ src/GLX/libglxmapping.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/src/GLX/libglxmapping.c b/src/GLX/libglxmapping.c
+index be384f8..2016a04 100644
+--- a/src/GLX/libglxmapping.c
++++ b/src/GLX/libglxmapping.c
+@@ -591,6 +591,10 @@ __GLXvendorInfo *__glXLookupVendorByScreen(Display *dpy, const int screen)
+ vendor = __glXLookupVendorByName(FALLBACK_VENDOR_NAME);
+ }
+
++ if (!vendor) {
++ vendor = __glXLookupVendorByName("system");
++ }
++
+ dpyInfo->vendors[screen] = vendor;
+ }
+ __glvndPthreadFuncs.rwlock_unlock(&dpyInfo->vendorLock);
+--
+2.17.0
+