From d9ae5db6e3aed724b81324c67074c2d792a2f2a5 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 10 Feb 2012 18:43:17 -0700 Subject: [PATCH] st/mesa: remove redundant memset(surface_template,0) The subsequent u_surface_default_template() call does that for us. Reviewed-by: Jose Fonseca --- src/mesa/state_tracker/st_cb_fbo.c | 1 - 1 file changed, 1 deletion(-) 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, -- 2.30.2