From e81cbd876ed400ccb2ed452f375a7c2cb5ddd48f Mon Sep 17 00:00:00 2001 From: Karl Schultz Date: Mon, 5 Sep 2005 13:45:23 +0000 Subject: fix var declaration so that a C compiler can build it. --- src/mesa/shader/atifragshader.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mesa') 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); -- cgit v1.2.3