From 2ffde0988ca9ca9cc54886827f667552187242e5 Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 17 Dec 2014 17:39:41 +0000 Subject: [PATCH] Exclude steam's overlay dll. Credit to roalercon. Closes #114 --- renderdoc/os/win32/win32_hook.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/renderdoc/os/win32/win32_hook.cpp b/renderdoc/os/win32/win32_hook.cpp index 929e16377..932a8dc01 100644 --- a/renderdoc/os/win32/win32_hook.cpp +++ b/renderdoc/os/win32/win32_hook.cpp @@ -113,8 +113,10 @@ struct CachedHookData // fraps seems to non-safely modify the assembly around the hook function, if // we modify its import descriptors it leads to a crash as it hooks OUR functions. // instead, skip modifying the import descriptors, it will hook the 'real' d3d functions - // and we can call them and have fraps + renderdoc playing nicely together - if(strstr(lowername, "fraps")) + // and we can call them and have fraps + renderdoc playing nicely together. + // we also exclude some other overlay renderers here, such as steam's + if(strstr(lowername, "fraps") || + strstr(lowername, "gameoverlayrenderer")) return; // for safety (and because we don't need to), ignore these modules