HLSL: fix array[1] of vec4 constant declaration.

This commit is contained in:
xavier
2017-08-20 10:44:21 +02:00
committed by John Kessenich
parent c64a9dd6a9
commit ae8af5d33e
6 changed files with 381 additions and 245 deletions

View File

@@ -7828,7 +7828,7 @@ TIntermTyped* HlslParseContext::addConstructor(const TSourceLoc& loc, TIntermTyp
bool singleArg;
if (aggrNode != nullptr) {
if (aggrNode->getOp() != EOpNull || aggrNode->getSequence().size() == 1)
if (aggrNode->getOp() != EOpNull)
singleArg = true;
else
singleArg = false;