glsl: Don't use random pointers as an array of glsl_type objects.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 18 Jun 2013 11:22:32 +0000 (04:22 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 26 Jun 2013 18:25:12 +0000 (11:25 -0700)
commit818da74af542f50aa9c32c7471de58185c7de541
treeec20b479ad07bdab5588e43e21a0e5fdcf873bfe
parent4530ed4f26bb887413a4ed4a5b6df7bf9ff9fc9e
glsl: Don't use random pointers as an array of glsl_type objects.

Using a random glsl_type convenience pointer as an array is a really bad
idea, for all the reasons mentioned in the previous commit.

The new glsl_type::bvec() function is simpler anyway.

Prevents breakage in the next commit.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/glsl/lower_variable_index_to_cond_assign.cpp