|
|
@ -54,15 +54,17 @@ dlopen(const char *filename, int flag) |
|
|
|
{ |
|
|
|
{ |
|
|
|
void * (*dlopen_unwrapped)(const char *filename, int flag); |
|
|
|
void * (*dlopen_unwrapped)(const char *filename, int flag); |
|
|
|
|
|
|
|
|
|
|
|
if (!strcmp(filename, "libGL.so.1")) |
|
|
|
if (filename) { |
|
|
|
return NULL; |
|
|
|
if (!strcmp(filename, "libGL.so.1")) |
|
|
|
|
|
|
|
return NULL; |
|
|
|
#if GLES_VERSION == 2 |
|
|
|
#if GLES_VERSION == 2 |
|
|
|
if (!strcmp(filename, "libGLESv1_CM.so.1")) |
|
|
|
if (!strcmp(filename, "libGLESv1_CM.so.1")) |
|
|
|
return NULL; |
|
|
|
return NULL; |
|
|
|
#else |
|
|
|
#else |
|
|
|
if (!strcmp(filename, "libGLESv2.so.2")) |
|
|
|
if (!strcmp(filename, "libGLESv2.so.2")) |
|
|
|
return NULL; |
|
|
|
return NULL; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
dlopen_unwrapped = dlsym(RTLD_NEXT, "dlopen"); |
|
|
|
dlopen_unwrapped = dlsym(RTLD_NEXT, "dlopen"); |
|
|
|
assert(dlopen_unwrapped); |
|
|
|
assert(dlopen_unwrapped); |
|
|
|