From 96f2963fb24ff0c73d6e1b2b2a60509facfa9275 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Thu, 2 Oct 2014 15:56:57 +0100 Subject: dxgitrace: Search for more recent versions d3dcompiler_xx.dll. And warn if none is found. --- helpers/d3dshader.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'helpers') 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. */ -- cgit v1.2.3