From 8f491421f070159983fe6d43fd00b38df816f04e Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 10 Mar 2017 12:45:33 +0000 Subject: [PATCH] Disable hooking of nvoglv{32,64}.dll and nvapi{,64}.dll * This is in case they do funky stuff that our hooking might interfere with. --- renderdoc/os/win32/win32_hook.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/renderdoc/os/win32/win32_hook.cpp b/renderdoc/os/win32/win32_hook.cpp index 0e6ad3218..ae6d86be4 100644 --- a/renderdoc/os/win32/win32_hook.cpp +++ b/renderdoc/os/win32/win32_hook.cpp @@ -255,9 +255,11 @@ struct CachedHookData // for safety (and because we don't need to), ignore these modules if(!_stricmp(modName, "kernel32.dll") || !_stricmp(modName, "powrprof.dll") || !_stricmp(modName, "opengl32.dll") || !_stricmp(modName, "gdi32.dll") || + !_stricmp(modName, "nvoglv32.dll") || !_stricmp(modName, "nvoglv64.dll") || strstr(lowername, "msvcr") == lowername || strstr(lowername, "msvcp") == lowername || strstr(lowername, "nv-vk") == lowername || strstr(lowername, "amdvlk") == lowername || - strstr(lowername, "igvk") == lowername || strstr(lowername, "nvopencl") == lowername) + strstr(lowername, "igvk") == lowername || strstr(lowername, "nvopencl") == lowername || + strstr(lowername, "nvapi") == lowername) return; byte *baseAddress = (byte *)module;