From: Brian Paul Date: Mon, 12 Oct 2015 16:43:36 +0000 (-0600) Subject: vbo: move 'tmp' var initialization X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8fbb72c2977f652b0790b0fcf5f87286549e39f0;p=mesa.git vbo: move 'tmp' var initialization Improve readability a bit. Reviewed-by: Marek Olšák --- diff --git a/src/mesa/vbo/vbo_save_api.c b/src/mesa/vbo/vbo_save_api.c index 02cd03c1dc3..fdc677f9a07 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];