summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-11-20 20:36:35 +0100
committerMarek Olšák <[email protected]>2011-11-22 20:56:51 +0100
commitc4f51b225b7ec9ce231d140b1abf8637f37a33c7 (patch)
treee1c3e8c2586f69cb21246bb6139dd4d553e98905 /src
parent498e86e414dbf9b2f7d2f18cca908217ee644710 (diff)
u_vbuf_mgr: remove redundant memset
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/util/u_vbuf_mgr.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/util/u_vbuf_mgr.c b/src/gallium/auxiliary/util/u_vbuf_mgr.c
index b178f809de5..377a7e40e01 100644
--- a/src/gallium/auxiliary/util/u_vbuf_mgr.c
+++ b/src/gallium/auxiliary/util/u_vbuf_mgr.c
@@ -174,9 +174,7 @@ u_vbuf_translate_begin(struct u_vbuf_priv *mgr,
memset(&key, 0, sizeof(key));
memset(tr_elem_index, 0xff, sizeof(tr_elem_index));
- /* Initialize the translate key, i.e. the recipe how vertices should be
- * translated. */
- memset(&key, 0, sizeof key);
+ /* Initialize the description of how vertices should be translated. */
for (i = 0; i < mgr->ve->count; i++) {
enum pipe_format output_format = mgr->ve->native_format[i];
unsigned output_format_size = mgr->ve->native_format_size[i];