summaryrefslogtreecommitdiff
path: root/inject/injectee.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'inject/injectee.cpp')
-rw-r--r--inject/injectee.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/inject/injectee.cpp b/inject/injectee.cpp
index bba2b353..c0f417e7 100644
--- a/inject/injectee.cpp
+++ b/inject/injectee.cpp
@@ -1079,6 +1079,9 @@ DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved)
registerModuleHooks("d3d10_1.dll", g_hHookModule);
registerModuleHooks("d3d11.dll", g_hHookModule);
registerModuleHooks("d3d9.dll", g_hHookModule); // for D3DPERF_*
+ } else if (stricmp(szNewDllBaseName, "d3d9.dll") == 0) {
+ registerModuleHooks("d3d9.dll", g_hHookModule);
+ registerModuleHooks("dxva2.dll", g_hHookModule);
} else if (stricmp(szNewDllBaseName, "d2d1trace.dll") == 0) {
registerModuleHooks("d2d1.dll", g_hHookModule);
registerModuleHooks("dwrite.dll", g_hHookModule);