summaryrefslogtreecommitdiff
path: root/helpers
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2014-10-02 15:56:57 +0100
committerJosé Fonseca <jfonseca@vmware.com>2014-10-02 15:59:37 +0100
commit96f2963fb24ff0c73d6e1b2b2a60509facfa9275 (patch)
treedb563a2f556536978240fc401f906764ab30279e /helpers
parent01e5c8561150f4f797d23b2df76edecf9efd8f51 (diff)
dxgitrace: Search for more recent versions d3dcompiler_xx.dll.
And warn if none is found.
Diffstat (limited to 'helpers')
-rw-r--r--helpers/d3dshader.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/helpers/d3dshader.cpp b/helpers/d3dshader.cpp
index 06a71357..73867bd7 100644
--- a/helpers/d3dshader.cpp
+++ b/helpers/d3dshader.cpp
@@ -142,7 +142,7 @@ DisassembleShader(const void *pShaderBytecode, SIZE_T BytecodeLength, IDisassemb
char szFilename[MAX_PATH];
HMODULE hModule = NULL;
int version;
- for (version = 44; version >= 33; --version) {
+ for (version = 47; version >= 33; --version) {
_snprintf(szFilename, sizeof(szFilename), "d3dcompiler_%i.dll", version);
hModule = LoadLibraryA(szFilename);
if (hModule) {
@@ -154,6 +154,8 @@ DisassembleShader(const void *pShaderBytecode, SIZE_T BytecodeLength, IDisassemb
}
}
if (!pfnD3DDisassemble) {
+ os::log("apitrace: warning: failed to load d3dcompiler_xx.dll\n");
+
/*
* Fallback to D3D10DisassembleShader, which should be always present.
*/