Try to avoid looking up bootstrap functions in the wrong library.

Fixes the EGL-only subtest of egl_and_glx_different_pointers.
macos/v1.5.9
Eric Anholt 11 years ago
parent 037ac7f566
commit 698185e24a
  1. 8
      src/dispatch_common.c
  2. 1
      test/Makefile.am

@ -440,12 +440,10 @@ epoxy_get_bootstrap_proc_address(const char *name)
/* If we already have a library that links to libglapi loaded,
* use that.
*/
if (api.glx_handle)
#if PLATFORM_HAS_GLX
if (api.glx_handle && glXGetCurrentContext())
return epoxy_gl_dlsym(name);
if (api.gles2_handle)
return epoxy_gles2_dlsym(name);
if (api.gles1_handle)
return epoxy_gles1_dlsym(name);
#endif
/* If epoxy hasn't loaded any API-specific library yet, try to
* figure out what API the context is using and use that library,

@ -64,7 +64,6 @@ check_BINARIES = $(EGL_AND_GLX_BIN)
XFAIL_TESTS = \
egl_and_glx_different_pointers_egl_glx \
egl_and_glx_different_pointers_egl \
egl_and_glx_different_pointers_glx \
$()

Loading…
Cancel
Save