mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Check for errors when invoking AMD DXBC disassembler
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user