projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1cbf85
)
vbo: move 'tmp' var initialization
author
Brian Paul
<brianp@vmware.com>
Mon, 12 Oct 2015 16:43:36 +0000
(10:43 -0600)
committer
Brian Paul
<brianp@vmware.com>
Tue, 13 Oct 2015 14:28:23 +0000
(08:28 -0600)
Improve readability a bit.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/vbo/vbo_save_api.c
patch
|
blob
|
history
diff --git
a/src/mesa/vbo/vbo_save_api.c
b/src/mesa/vbo/vbo_save_api.c
index 02cd03c1dc3d0d49ab9f4a9f6f08601bc5e6c736..fdc677f9a0759890e72ae761ffe02c36e1120ba7 100644
(file)
--- a/
src/mesa/vbo/vbo_save_api.c
+++ b/
src/mesa/vbo/vbo_save_api.c
@@
-648,7
+648,8
@@
_save_upgrade_vertex(struct gl_context *ctx, GLuint attr, GLuint newsz)
/* Recalculate all the attrptr[] values:
*/
- for (i = 0, tmp = save->vertex; i < VBO_ATTRIB_MAX; i++) {
+ tmp = save->vertex;
+ for (i = 0; i < VBO_ATTRIB_MAX; i++) {
if (save->attrsz[i]) {
save->attrptr[i] = tmp;
tmp += save->attrsz[i];