Merge pull request #2755 from greg-lunarg/2748

Run update_precision() on array and matrix constructors.
This commit is contained in:
Greg Fischer 2021-09-15 09:42:34 -06:00 committed by GitHub
commit 07c5392f50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7694,7 +7694,7 @@ TIntermTyped* TParseContext::addConstructor(const TSourceLoc& loc, TIntermNode*
TIntermTyped *ret_node = intermediate.setAggregateOperator(aggrNode, op, type, loc);
TIntermAggregate *agg_node = ret_node->getAsAggregate();
if (agg_node && agg_node->isVector())
if (agg_node && (agg_node->isVector() || agg_node->isArray() || agg_node->isMatrix()))
agg_node->updatePrecision();
return ret_node;