diff options
author | Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> | 2016-04-16 22:26:23 +0300 |
---|---|---|
committer | Chad Versace <chad.versace@intel.com> | 2016-04-26 14:54:29 -0700 |
commit | ec5f7fc7bd1104700738f27f0e79269fe3ab4072 (patch) | |
tree | a0fb7cdbabb055ed4de034c60fbc1038ecb04450 /src/mesa | |
parent | 51632d6f27860c4e217a34fbb23864dfa56c4c48 (diff) | |
download | external_mesa3d-ec5f7fc7bd1104700738f27f0e79269fe3ab4072.zip external_mesa3d-ec5f7fc7bd1104700738f27f0e79269fe3ab4072.tar.gz external_mesa3d-ec5f7fc7bd1104700738f27f0e79269fe3ab4072.tar.bz2 |
i965/meta: initialize values to avoid random behaviour on error path
if brw_meta_stencil_blit() errored at wrong place 'target' would
be uninitialized and cause random behaviour on leaving the funtion.
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
Reviewed-by: Chad Versace <chad.versace@intel.com>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_meta_stencil_blit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_meta_stencil_blit.c b/src/mesa/drivers/dri/i965/brw_meta_stencil_blit.c index 7e04248..3cad165 100644 --- a/src/mesa/drivers/dri/i965/brw_meta_stencil_blit.c +++ b/src/mesa/drivers/dri/i965/brw_meta_stencil_blit.c @@ -433,7 +433,7 @@ brw_meta_stencil_blit(struct brw_context *brw, struct gl_shader_program *prog; struct gl_framebuffer *drawFb = NULL; struct gl_renderbuffer *rb = NULL; - GLenum target; + GLenum target = 0; _mesa_meta_fb_tex_blit_begin(ctx, &blit); /* XXX: Pretend to support stencil textures so _mesa_base_tex_format() |