Do not use OPENGL_LIB on Android

When building on Android we end up in the Linux branch of the symbol
loading logic, but the __ANDROID__ conditional does not have the
OPENGL_LIB symbol defined, and that breaks the build.

Closes: #152
macos/v1.5.9
Emmanuele Bassi 7 years ago
parent 158ce2bc81
commit f6d2b1f6ad
  1. 2
      src/dispatch_common.c

@ -675,8 +675,10 @@ epoxy_gl_dlsym(const char *name)
#else #else
void *sym; void *sym;
# if defined(OPENGL_LIB)
if (!api.gl_handle) if (!api.gl_handle)
get_dlopen_handle(&api.gl_handle, OPENGL_LIB, false); get_dlopen_handle(&api.gl_handle, OPENGL_LIB, false);
# endif
if (api.gl_handle) if (api.gl_handle)
return do_dlsym(&api.gl_handle, NULL, name, true); return do_dlsym(&api.gl_handle, NULL, name, true);

Loading…
Cancel
Save