From: Brian Paul Date: Sat, 11 Feb 2012 01:43:17 +0000 (-0700) Subject: st/mesa: remove redundant memset(surface_template,0) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d9ae5db6e3aed724b81324c67074c2d792a2f2a5;p=mesa.git st/mesa: remove redundant memset(surface_template,0) The subsequent u_surface_default_template() call does that for us. Reviewed-by: Jose Fonseca --- diff --git a/src/mesa/state_tracker/st_cb_fbo.c b/src/mesa/state_tracker/st_cb_fbo.c index 2e884a42619..19bbdc5bb42 100644 --- a/src/mesa/state_tracker/st_cb_fbo.c +++ b/src/mesa/state_tracker/st_cb_fbo.c @@ -148,7 +148,6 @@ st_renderbuffer_alloc_storage(struct gl_context * ctx, if (!strb->texture) return FALSE; - memset(&surf_tmpl, 0, sizeof(surf_tmpl)); u_surface_default_template(&surf_tmpl, strb->texture, template.bind); strb->surface = pipe->create_surface(pipe, strb->texture,