integer type operation should not be noContraction

This commit is contained in:
qining 2016-05-06 21:52:28 -04:00
parent 34d257184a
commit 5bec2b5619
5 changed files with 116 additions and 124 deletions

View file

@ -712,7 +712,7 @@ protected:
return false;
}
// If this is an arithmetic operation, marks this node as 'noContraction'.
if (isArithmeticOperation(node->getOp())) {
if (isArithmeticOperation(node->getOp()) && node->getBasicType() != glslang::EbtInt) {
node->getWritableType().getQualifier().noContraction = true;
}
// As this node is not an object node, need to traverse the children nodes.