st/mesa: remove unnecessary memset()/zero call
authorBrian Paul <brianp@vmware.com>
Tue, 10 Jan 2012 18:40:00 +0000 (11:40 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 10 Jan 2012 19:37:38 +0000 (12:37 -0700)
The u_surface_default_template() function does the memset()/zero now.

Jakob Bornecrantz <jakob@vmware.com>

src/mesa/state_tracker/st_manager.c

index c0af3ce118fa98fe03985e8549f425d8a3a6e91a..b83cb233961e0581dcdbf2f1dafa2e5f521835ac 100644 (file)
@@ -222,7 +222,6 @@ st_framebuffer_validate(struct st_framebuffer *stfb,
          continue;
       }
 
-      memset(&surf_tmpl, 0, sizeof(surf_tmpl));
       u_surface_default_template(&surf_tmpl, textures[i],
                                  PIPE_BIND_RENDER_TARGET);
       ps = st->pipe->create_surface(st->pipe, textures[i], &surf_tmpl);