dispatch: Don't reference glvnd #defines on non-glvnd systems

Broke the build on OSX, oops.

Resolves: https://github.com/anholt/libepoxy/issues/132
Signed-off-by: Adam Jackson <ajax@redhat.com>
macos/v1.5.9
Adam Jackson 7 years ago
parent b157a4d5ca
commit 91c9ecebd9
  1. 2
      src/dispatch_common.c

@ -597,9 +597,11 @@ epoxy_egl_dlsym(const char *name)
void *
epoxy_conservative_glx_dlsym(const char *name, bool exit_if_fails)
{
#ifdef GLVND_GLX_LIB
/* prefer the glvnd library if it exists */
if (!api.glx_handle)
get_dlopen_handle(&api.glx_handle, GLVND_GLX_LIB, false);
#endif
return do_dlsym(&api.glx_handle, GLX_LIB, name, exit_if_fails);
}

Loading…
Cancel
Save