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-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e81cbd876ed400ccb2ed452f375a7c2cb5ddd48f;p=mesa.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 ffd46b1095c..3117467c3cf 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);