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:
baldurk
2018-01-18 14:41:59 +00:00
parent 80dc758d18
commit 5ec9db3af1
+1 -1
View File
@@ -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;