mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 09:40:08 +01:00
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>
This commit is contained in:
parent
51632d6f27
commit
ec5f7fc7bd
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue