mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Only put brackets around base string if it's inlined
This commit is contained in:
@@ -1043,7 +1043,7 @@ struct SPVInstruction
|
||||
|
||||
string base;
|
||||
op->arguments[i]->op->GetArg(ids, 0, base);
|
||||
if(op->arguments[i]->op->arguments[0]->op->mathop)
|
||||
if((op->arguments[i]->op->inlineArgs & 1) && op->arguments[i]->op->arguments[0]->op->mathop)
|
||||
base = "(" + base + ")";
|
||||
|
||||
string swizzleString;
|
||||
|
||||
Reference in New Issue
Block a user