mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 05:20:45 +00:00
Register library hook even if callback is NULL. Refs #1040
This commit is contained in:
@@ -176,13 +176,13 @@ void LibraryHooks::RegisterFunctionHook(const char *libraryName, const FunctionH
|
||||
|
||||
void LibraryHooks::RegisterLibraryHook(char const *name, FunctionLoadCallback cb)
|
||||
{
|
||||
if(cb == NULL)
|
||||
return;
|
||||
|
||||
SCOPED_LOCK(libLock);
|
||||
|
||||
if(std::find(libraryHooks.begin(), libraryHooks.end(), name) == libraryHooks.end())
|
||||
libraryHooks.push_back(name);
|
||||
libraryCallbacks[name].push_back(cb);
|
||||
|
||||
if(cb)
|
||||
libraryCallbacks[name].push_back(cb);
|
||||
}
|
||||
|
||||
void LibraryHooks::IgnoreLibrary(const char *libraryName)
|
||||
|
||||
Reference in New Issue
Block a user