summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2015-10-12 10:43:36 -0600
committerBrian Paul <brianp@vmware.com>2015-10-13 08:28:23 -0600
commit8fbb72c2977f652b0790b0fcf5f87286549e39f0 (patch)
tree96644e0da8155af4ab9dfad6952fa20cb2e1ee9a
parenta1cbf85de0a0c06a95086ea52d2260343e1783c4 (diff)
downloadexternal_mesa3d-8fbb72c2977f652b0790b0fcf5f87286549e39f0.zip
external_mesa3d-8fbb72c2977f652b0790b0fcf5f87286549e39f0.tar.gz
external_mesa3d-8fbb72c2977f652b0790b0fcf5f87286549e39f0.tar.bz2
vbo: move 'tmp' var initialization
Improve readability a bit. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
-rw-r--r--src/mesa/vbo/vbo_save_api.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/vbo/vbo_save_api.c b/src/mesa/vbo/vbo_save_api.c
index 02cd03c..fdc677f 100644
--- 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];