integer type operation should not be noContraction
This commit is contained in:
parent
34d257184a
commit
5bec2b5619
5 changed files with 116 additions and 124 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue