mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
st/mesa: remove redundant memset(surface_template,0)
The subsequent u_surface_default_template() call does that for us. Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
2e12b4cfef
commit
d9ae5db6e3
1 changed files with 0 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue