]> git.cworth.org Git - fips/commitdiff
dlwrap: Add "libGLESv2.so" to the list of supported wrapped libraries
authorCarl Worth <cworth@cworth.org>
Wed, 3 Jul 2013 00:38:28 +0000 (17:38 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 3 Jul 2013 00:40:58 +0000 (17:40 -0700)
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.

dlwrap.c

index 858b99b6d5a6b1e41b5b94aad3d4299dcc69fb35..dda7a77a00590e53a5101b98d6961092315ab7c3 100644 (file)
--- a/dlwrap.c
+++ b/dlwrap.c
@@ -38,7 +38,8 @@ typedef void * (* fips_dlsym_t)(void *handle, const char *symbol);
 
 static const char *wrapped_libs[] = {
        "libGL.so",
-       "libEGL.so"
+       "libEGL.so",
+       "libGLESv2.so"
 };
 
 static void *orig_handles[ARRAY_SIZE(wrapped_libs)];