HLSL: Allow empty struct initializers
Review request: does this harm GLSL in any way?
This commit is contained in:
parent
7cca140956
commit
c0043cda82
4 changed files with 121 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue