GLSL: Fix #1247. Remove extraneous *= matrix test.
This commit is contained in:
parent
98e3fb1926
commit
b587fb6208
5 changed files with 17 additions and 2 deletions
|
|
@ -2706,7 +2706,7 @@ bool TIntermediate::promoteBinary(TIntermBinary& node)
|
|||
node.setOp(op = EOpMatrixTimesScalarAssign);
|
||||
}
|
||||
} else if (left->isMatrix() && right->isMatrix()) {
|
||||
if (left->getMatrixCols() != left->getMatrixRows() || left->getMatrixCols() != right->getMatrixCols() || left->getMatrixCols() != right->getMatrixRows())
|
||||
if (left->getMatrixCols() != right->getMatrixCols() || left->getMatrixCols() != right->getMatrixRows())
|
||||
return false;
|
||||
node.setOp(op = EOpMatrixTimesMatrixAssign);
|
||||
} else if (!left->isMatrix() && !right->isMatrix()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue