Merge pull request #2602 from jeremy-lunarg/hayes-2514
Issue error when declaration rule fails
This commit is contained in:
commit
b3859343a2
2 changed files with 5 additions and 2 deletions
|
|
@ -161,8 +161,10 @@ bool HlslGrammar::acceptDeclarationList(TIntermNode*& nodeList)
|
|||
return true;
|
||||
|
||||
// declaration
|
||||
if (! acceptDeclaration(nodeList))
|
||||
if (! acceptDeclaration(nodeList)) {
|
||||
expected("declaration");
|
||||
return false;
|
||||
}
|
||||
} while (true);
|
||||
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue