st/mesa: remove redundant memset(surface_template,0)
authorBrian Paul <brianp@vmware.com>
Sat, 11 Feb 2012 01:43:17 +0000 (18:43 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 15 Feb 2012 21:07:43 +0000 (14:07 -0700)
The subsequent u_surface_default_template() call does that for us.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/mesa/state_tracker/st_cb_fbo.c

index 2e884a42619cf637446ca1750558c9dbbe81a4d5..19bbdc5bb42ba7c0e9f0b8e4da7219be87c4870a 100644 (file)
@@ -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,