projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
498e86e
)
u_vbuf_mgr: remove redundant memset
author
Marek Olšák
<maraeo@gmail.com>
Sun, 20 Nov 2011 19:36:35 +0000
(20:36 +0100)
committer
Marek Olšák
<maraeo@gmail.com>
Tue, 22 Nov 2011 19:56:51 +0000
(20:56 +0100)
src/gallium/auxiliary/util/u_vbuf_mgr.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_vbuf_mgr.c
b/src/gallium/auxiliary/util/u_vbuf_mgr.c
index b178f809de51de0bdfd3f1f6ec884d1000145c54..377a7e40e01e0bd856e86ebb44f44bb47518f66d 100644
(file)
--- 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];