summaryrefslogtreecommitdiff
path: root/inject
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2015-07-16 12:56:54 +0100
committerJose Fonseca <jfonseca@vmware.com>2015-07-16 13:02:11 +0100
commitf2a1305448efefacb2ec7e654d797bb9fbe7202e (patch)
tree61d46c09422ad9185f7073504895cab48fc5820f /inject
parente39d56edca49495aa401ffd22a35da4a10a1fd38 (diff)
d3dtrace: Trace the actual DXVA2 API calls.
As opposed to internal interfaces.
Diffstat (limited to 'inject')
-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);