HLSL: Implement switch/case/default.
This commit is contained in:
parent
2f47bc9781
commit
d02dc5d05a
7 changed files with 514 additions and 7 deletions
|
|
@ -3969,8 +3969,6 @@ void HlslParseContext::wrapupSwitchSubsequence(TIntermAggregate* statements, TIn
|
|||
TIntermSequence* switchSequence = switchSequenceStack.back();
|
||||
|
||||
if (statements) {
|
||||
if (switchSequence->size() == 0)
|
||||
error(statements->getLoc(), "cannot have statements before first case/default label", "switch", "");
|
||||
statements->setOperator(EOpSequence);
|
||||
switchSequence->push_back(statements);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue