glsl: When we've emitted a semantic error for ==, return a bool constant.
authorEric Anholt <eric@anholt.net>
Sat, 9 Apr 2011 22:54:34 +0000 (12:54 -1000)
committerEric Anholt <eric@anholt.net>
Wed, 13 Apr 2011 22:48:26 +0000 (15:48 -0700)
commit175829f1a8ab0df7594131cc569462e45c1974ec
tree023e2b561a2f4f0b1c75a3e35e3923eb4bc5226f
parent9e04b190b5f59c5b375645f5756a6edd98a7f90c
glsl: When we've emitted a semantic error for ==, return a bool constant.

This prevents later errors (including an assertion failure) from
cascading the failure.

Fixes invalid-equality-04.vert.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=33303
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chad Versace <chad.versace@intel.com>
src/glsl/ast_to_hir.cpp