diff --git a/renderdoc/os/posix/linux/linux_hook.cpp b/renderdoc/os/posix/linux/linux_hook.cpp index efa2bd102..bc65bae2d 100644 --- a/renderdoc/os/posix/linux/linux_hook.cpp +++ b/renderdoc/os/posix/linux/linux_hook.cpp @@ -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; }