mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-18 03:35:57 +00:00
pick up libGL dlsym handle when dlopen() is called
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user