From: Vinson Lee Date: Fri, 25 Sep 2009 14:51:57 +0000 (-0600) Subject: mesa: move declaration before code X-Git-Tag: 062012170305~15905^2~174 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=46da1f2c9b67e3b4c3659f2d029140b639571407;p=profile%2Fivi%2Fmesa.git mesa: move declaration before code --- diff --git a/src/mesa/shader/nvvertparse.c b/src/mesa/shader/nvvertparse.c index 6ab8a14..8574016 100644 --- a/src/mesa/shader/nvvertparse.c +++ b/src/mesa/shader/nvvertparse.c @@ -1415,9 +1415,10 @@ _mesa_parse_nv_vertex_program(GLcontext *ctx, GLenum dstTarget, * upload everything, _mesa_layout_parameters is the answer. */ for (i = 0; i < MAX_NV_VERTEX_PROGRAM_PARAMS; i++) { + GLint index; state_tokens[2] = i; - int index = _mesa_add_state_reference(program->Base.Parameters, - state_tokens); + index = _mesa_add_state_reference(program->Base.Parameters, + state_tokens); assert(index == i); } program->Base.NumParameters = program->Base.Parameters->NumParameters;