HLSL: Fix assert: ensure flattened shadow is EvqTemporary.

This commit is contained in:
John Kessenich
2016-09-19 00:19:49 -06:00
parent 5159d4f1af
commit 28b28140bb
3 changed files with 10 additions and 9 deletions

View File

@@ -2271,6 +2271,7 @@ void HlslParseContext::addInputArgumentConversions(const TFunction& function, TI
TSourceLoc dummyLoc;
dummyLoc.init();
TVariable* internalAggregate = makeInternalVariable("aggShadow", *function[i].type);
internalAggregate->getWritableType().getQualifier().makeTemporary();
TIntermSymbol* internalSymbolNode = new TIntermSymbol(internalAggregate->getUniqueId(),
internalAggregate->getName(),
internalAggregate->getType());