mirror of
https://github.com/utmapp/libepoxy.git
synced 2026-12-01 07:53:40 -10:00
If glvnd library found, do not use libGL.so in epoxy_load_gl
Without additional check, even if libOpenGL was loaded, libGL.so will be loaded as well, and used both in gl_handle and glx_handle, so libglvnd libraries will not be used. Reviewed-by: Adam Jackson <[email protected]> Signed-off-by: Emmanuele Bassi <[email protected]>
This commit is contained in:
1 parent
c797320424
commit
dbfa4b209c
1 file changed
+6
-3
@@ -674,9 +674,12 @@ epoxy_load_gl(void)
|
||||
if (!api.gl_handle)
|
||||
get_dlopen_handle(&api.gl_handle, OPENGL_LIB, false, true);
|
||||
#endif
|
||||
|
||||
get_dlopen_handle(&api.glx_handle, GLX_LIB, true, true);
|
||||
api.gl_handle = api.glx_handle;
|
||||
if (!api.gl_handle) {
|
||||
get_dlopen_handle(&api.gl_handle, GLX_LIB, true, true);
|
||||
#if PLATFORM_HAS_GLX
|
||||
api.glx_handle = api.gl_handle;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user