[Mesa-dev] [PATCH 03/13] st/mesa: remove redundant memset(surface_template, 0)

Brian Paul brianp at vmware.com
Mon Feb 13 08:19:19 PST 2012


The subsequent u_surface_default_template() call does that for us.
---
 src/mesa/state_tracker/st_cb_fbo.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/mesa/state_tracker/st_cb_fbo.c b/src/mesa/state_tracker/st_cb_fbo.c
index 2e884a4..19bbdc5 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,
-- 
1.7.3.4



More information about the mesa-dev mailing list