mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 13:30:44 +00:00
Divide byte length by 4 to get number of DWORDs in the bytecode
* Since dxbc is a uint32_t* this needs to be the count we use.
This commit is contained in:
@@ -163,7 +163,7 @@ std::string DisassembleDXBC(const bytebuf &shaderBytes, const std::string &targe
|
||||
dxbc++;
|
||||
in.pShaderByteCode = dxbc;
|
||||
|
||||
if(dxbc + in.byteCodeLength >= end)
|
||||
if(dxbc + (in.byteCodeLength / 4) > end)
|
||||
return dxbcParseError;
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user