pick up libGL dlsym handle when dlopen() is called

This commit is contained in:
baldurk
2014-11-14 23:25:15 +00:00
parent 9c0b89baae
commit c5e53f7473
+2
View File
@@ -515,6 +515,8 @@ void *dlopen(const char *filename, int flag)
if(filename && ret && strstr(filename, "libGL.so"))
{
RDCDEBUG("Redirecting dlopen to ourselves");
libGLdlsymHandle = ret;
OpenGLHook::glhooks.CreateHooks("libGL.so");
ret = realdlopen("librenderdoc.so", flag);
}