Check for errors when invoking AMD DXBC disassembler

This commit is contained in:
baldurk committed 2018-01-31 21:03:10 +00:00
1 parent c744638471
commit edb85d834e
1 file changed
+3
@@ -177,6 +177,9 @@ std::string DisassembleDXBC(const bytebuf &shaderBytes, const std::string &targe
compileShader(&in, &out);
if(out.pShaderBinary == NULL || out.shaderBinarySize < 16)
return "; Failed to disassemble shader";
const uint8_t *elf = (const uint8_t *)out.pShaderBinary;
const Elf32_Ehdr *elfHeader = (const Elf32_Ehdr *)elf;