HLSL: Fix #1192: when bool operands are converted to ints, convert result type.
This commit is contained in:
parent
35682b5926
commit
070aaeafcd
2 changed files with 181 additions and 206 deletions
|
|
@ -2474,6 +2474,11 @@ bool TIntermediate::promoteBinary(TIntermBinary& node)
|
|||
return false;
|
||||
node.setLeft(left);
|
||||
node.setRight(right);
|
||||
|
||||
// Update the original base assumption on result type..
|
||||
node.setType(left->getType());
|
||||
node.getWritableType().getQualifier().clear();
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue