mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-26 16:36:31 +00:00
Reset indent between functions in SPIR-V disassembly
* If something goes wrong and the indent isn't properly tidied, we know we can at least start from 0 at a new function
This commit is contained in:
@@ -699,7 +699,9 @@ rdcstr Reflector::Disassemble(const rdcstr &entryPoint,
|
||||
{
|
||||
ret += "}\n\n";
|
||||
lineNum += 2;
|
||||
indent.resize(indent.size() - 2);
|
||||
// completely reset indent, just in case something went wrong in a previous function and
|
||||
// it didn't reset itself
|
||||
indent.clear();
|
||||
continue;
|
||||
}
|
||||
// indent around control flow
|
||||
|
||||
Reference in New Issue
Block a user