summaryrefslogtreecommitdiff
path: root/helpers
diff options
context:
space:
mode:
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.
*/