Skip to content

Commit

Permalink
Do not use OPENGL_LIB on Android
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ebassi committed Feb 23, 2018
1 parent 158ce2b commit f6d2b1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dispatch_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -675,8 +675,10 @@ epoxy_gl_dlsym(const char *name)
#else
void *sym;

# if defined(OPENGL_LIB)
if (!api.gl_handle)
get_dlopen_handle(&api.gl_handle, OPENGL_LIB, false);
# endif

if (api.gl_handle)
return do_dlsym(&api.gl_handle, NULL, name, true);
Expand Down

0 comments on commit f6d2b1f

Please sign in to comment.