mirror of https://gitlab.freedesktop.org/mesa/mesa
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 <kenneth@whitecape.org> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
parent
6820f75c91
commit
6699403651
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue