This hooks up libGLESv2 to all of our dlsym machinery. It ensures that
we can intercept any dlsym calls into libGLESv2. It also ensures that
when glwrap looks for underlying, "real", GL functions it will look
into libGLESv2.so if that's the library that the application has
previously dlopened.
This commit fixes the egl-glesv2-dlopen-dlsym and
egl-glesv2-dlopen-gpa tests in the test suite.
static const char *wrapped_libs[] = {
"libGL.so",
- "libEGL.so"
+ "libEGL.so",
+ "libGLESv2.so"
};
static void *orig_handles[ARRAY_SIZE(wrapped_libs)];