mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-15 02:56:50 +00:00
Handle OPCODE_CUSTOMDATA when counting declarations
This commit is contained in:
@@ -334,7 +334,15 @@ void DXBCFile::DisassembleHexDump()
|
||||
if(IsDeclaration(op))
|
||||
numDecls++;
|
||||
|
||||
tmp += Opcode::Length.Get(OpcodeToken0);
|
||||
if(op == OPCODE_CUSTOMDATA)
|
||||
{
|
||||
// length in opcode token is 0, full length is in second dword
|
||||
tmp += tmp[1];
|
||||
}
|
||||
else
|
||||
{
|
||||
tmp += Opcode::Length.Get(OpcodeToken0);
|
||||
}
|
||||
}
|
||||
|
||||
m_Declarations.reserve(numDecls);
|
||||
|
||||
Reference in New Issue
Block a user