mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Even RTLD_GLOBAL loads can be linked to libraries we care about
* When a library libBlah.so is loaded, it might be linked to libGL.so. If so, we need to go populate our original functions and perform any callbacks when libGL.so gets loaded as a dependency. This is true even if the library isn't loaded as LOCAL.
This commit is contained in:
@@ -161,10 +161,9 @@ void *intercept_dlopen(const char *filename, int flag, void *ret)
|
||||
}
|
||||
}
|
||||
|
||||
// for local library loads, this library might depend on one we care about, so check again as we
|
||||
// this library might depend on one we care about, so check again as we
|
||||
// did in EndHookRegistration to see if any library has been loaded.
|
||||
if((flag & RTLD_GLOBAL) == 0)
|
||||
CheckLoadedLibraries();
|
||||
CheckLoadedLibraries();
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user