mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 20:00:10 +01:00
glsl2: Remove incorrect assertion in the parser.
This assertion is triggered by method calls (i.e. array.length()), where subexpressions[1] is an ast_function_call expression. Since the assertion itself had a comment saying it could be removed eventually, simply do so. Causes negative glslparser tests array-length-110.frag, array-length-args.frag, and array-length-unsized.frag to pass, but only because the length() method is not supported yet.
This commit is contained in:
parent
2b7c42b40a
commit
1036a7ebae
1 changed files with 0 additions and 6 deletions
|
|
@ -304,12 +304,6 @@ postfix_expression:
|
|||
}
|
||||
| function_call
|
||||
{
|
||||
/* Function call parameters used to be stored as a circular list in
|
||||
* subexpressions[1]. They are now stored as a regular list in
|
||||
* expressions. This assertion validates that the old code was
|
||||
* correctly converted. It can eventually be removed.
|
||||
*/
|
||||
assert($1->subexpressions[1] == NULL);
|
||||
$$ = $1;
|
||||
}
|
||||
| postfix_expression '.' IDENTIFIER
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue