From: Karl Schultz Date: Mon, 5 Sep 2005 13:45:23 +0000 (+0000) Subject: fix var declaration so that a C compiler can build it. X-Git-Tag: mesa-7.8~8662 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e81cbd876ed400ccb2ed452f375a7c2cb5ddd48f;p=platform%2Fupstream%2Fmesa.git fix var declaration so that a C compiler can build it. --- diff --git a/src/mesa/shader/atifragshader.c b/src/mesa/shader/atifragshader.c index ffd46b1..3117467 100644 --- a/src/mesa/shader/atifragshader.c +++ b/src/mesa/shader/atifragshader.c @@ -699,6 +699,7 @@ _mesa_AlphaFragmentOp3ATI(GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, void GLAPIENTRY _mesa_SetFragmentShaderConstantATI(GLuint dst, const GLfloat * value) { + GLuint dstindex; GET_CURRENT_CONTEXT(ctx); if ((dst < GL_CON_0_ATI) || (dst > GL_CON_7_ATI)) { @@ -707,7 +708,7 @@ _mesa_SetFragmentShaderConstantATI(GLuint dst, const GLfloat * value) return; } - GLuint dstindex = dst - GL_CON_0_ATI; + dstindex = dst - GL_CON_0_ATI; if (ctx->ATIFragmentShader.Compiling) { struct ati_fragment_shader *curProg = ctx->ATIFragmentShader.Current; COPY_4V(curProg->Constants[dstindex], value);