projects
/
platform
/
upstream
/
glslang.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0771b5
)
Run update_precision() on array and matrix constructors.
author
Greg Fischer
<greg@lunarg.com>
Tue, 14 Sep 2021 18:17:58 +0000
(12:17 -0600)
committer
Greg Fischer
<greg@lunarg.com>
Tue, 14 Sep 2021 18:17:58 +0000
(12:17 -0600)
glslang/MachineIndependent/ParseHelper.cpp
patch
|
blob
|
history
diff --git
a/glslang/MachineIndependent/ParseHelper.cpp
b/glslang/MachineIndependent/ParseHelper.cpp
index
a2dd5a6
..
b2b187b
100644
(file)
--- a/
glslang/MachineIndependent/ParseHelper.cpp
+++ b/
glslang/MachineIndependent/ParseHelper.cpp
@@
-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;