mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 05:20:09 +01:00
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>
This commit is contained in:
parent
4530ed4f26
commit
818da74af5
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ compare_index_block(exec_list *instructions, ir_variable *index,
|
|||
|
||||
ir_rvalue *const condition_val =
|
||||
new(mem_ctx) ir_expression(ir_binop_equal,
|
||||
&glsl_type::bool_type[components - 1],
|
||||
glsl_type::bvec(components),
|
||||
broadcast_index,
|
||||
test_indices);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue