glsl2: Remove incorrect assertion in the parser.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 18 Jul 2010 05:42:35 +0000 (22:42 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 21 Jul 2010 00:13:17 +0000 (17:13 -0700)
commit1036a7ebae2da03efd1b990037b6fd102d4cc5ca
treec9b2677999b24da18b77a34fdb3e19c7ea6c0d7f
parent2b7c42b40ae459f7b290eb134d6dabd075aab9f0
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.
src/glsl/glsl_parser.ypp