HLSL: Allow empty struct initializers

Review request: does this harm GLSL in any way?
This commit is contained in:
steve-lunarg 2017-04-27 18:22:52 -06:00
parent 7cca140956
commit c0043cda82
4 changed files with 121 additions and 6 deletions

View file

@ -76,12 +76,6 @@ bool TConstTraverser::visitAggregate(TVisit /* visit */, TIntermAggregate* node)
return false;
}
if (node->getSequence().size() == 0) {
error = true;
return false;
}
bool flag = node->getSequence().size() == 1 && node->getSequence()[0]->getAsTyped()->getAsConstantUnion();
if (flag) {
singleConstantParam = true;