View | Details | Raw Unified | Return to bug 256388
Collapse All | Expand All

(-)b/graphics/libepoxy/Makefile (+1 lines)
Lines 20-25 OPTIONS_SUB= yes Link Here
20
20
21
TEST_MESON_TRUE=	tests
21
TEST_MESON_TRUE=	tests
22
22
23
X11_EXTRA_PATCHES_OFF=	${PATCHDIR}/extra-patch-libopengl
23
X11_USES=		xorg
24
X11_USES=		xorg
24
X11_USE=		GL=gl XORG=x11
25
X11_USE=		GL=gl XORG=x11
25
X11_MESON_YES=		glx
26
X11_MESON_YES=		glx
(-)b/graphics/libepoxy/files/extra-patch-libopengl (-1 / +36 lines)
Added Link Here
0
- 
1
From dbfa4b209c0712b67dfeb8366c2ebe8503063b52 Mon Sep 17 00:00:00 2001
2
From: Yaroslav Isakov <yaroslav.isakov@gmail.com>
3
Date: Wed, 29 Jul 2020 16:40:01 +0200
4
Subject: [PATCH] If glvnd library found, do not use libGL.so in epoxy_load_gl
5
6
Without additional check, even if libOpenGL was loaded, libGL.so will
7
be loaded as well, and used both in gl_handle and glx_handle, so
8
libglvnd libraries will not be used.
9
10
Reviewed-by: Adam Jackson <ajax@redhat.com>
11
12
Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
13
---
14
 src/dispatch_common.c | 9 ++++++---
15
 1 file changed, 6 insertions(+), 3 deletions(-)
16
17
diff --git a/src/dispatch_common.c b/src/dispatch_common.c
18
index 9977a02..cfc9dcc 100644
19
--- src/dispatch_common.c
20
+++ src/dispatch_common.c
21
@@ -674,9 +674,12 @@ epoxy_load_gl(void)
22
     if (!api.gl_handle)
23
 	get_dlopen_handle(&api.gl_handle, OPENGL_LIB, false, true);
24
 #endif
25
-
26
-    get_dlopen_handle(&api.glx_handle, GLX_LIB, true, true);
27
-    api.gl_handle = api.glx_handle;
28
+    if (!api.gl_handle) {
29
+	get_dlopen_handle(&api.gl_handle, GLX_LIB, true, true);
30
+#if PLATFORM_HAS_GLX
31
+	api.glx_handle = api.gl_handle;
32
+#endif
33
+    }
34
 #endif
35
 }
36
 

Return to bug 256388