Do not overwrite glx_handle in epoxy_load_gl if GLX library is loaded already

Reviewed-by: Adam Jackson <ajax@redhat.com>

Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
macos/v1.5.9
Yaroslav Isakov 4 years ago committed by Emmanuele Bassi
parent dbfa4b209c
commit 4994c48172
  1. 3
      src/dispatch_common.c

@ -677,7 +677,8 @@ epoxy_load_gl(void)
if (!api.gl_handle) {
get_dlopen_handle(&api.gl_handle, GLX_LIB, true, true);
#if PLATFORM_HAS_GLX
api.glx_handle = api.gl_handle;
if (!api.glx_handle)
api.glx_handle = api.gl_handle;
#endif
}
#endif

Loading…
Cancel
Save