glsl: Initialize outputs[] array in lower_blend_equation_advanced.

Caught by Coverity.  Likely fixes real issues if an output component
is not present.

CID: 1372278
Signed-off-by: Kenneth Graunke (semi-AFK still)'s avatarKenneth Graunke <>
Reviewed-by: Iago Toral's avatarIago Toral Quiroga <>
parent 6820f75c
......@@ -497,7 +497,7 @@ lower_blend_equation_advanced(struct gl_linked_shader *sh)
* which writes a subset of the components, starting at location_frac.
* The variables can't overlap, thankfully.
ir_variable *outputs[4];
ir_variable *outputs[4] = { NULL, NULL, NULL, NULL };
foreach_in_list(ir_instruction, ir, sh->ir) {
ir_variable *var = ir->as_variable();
if (!var || var->data.mode != ir_var_shader_out)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment