Skip to content
Snippets Groups Projects
Commit 070aaeaf authored by John Kessenich's avatar John Kessenich
Browse files

HLSL: Fix #1192: when bool operands are converted to ints, convert result type.

parent 35682b59
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment