fix var declaration so that a C compiler can build it.
authorKarl Schultz <kschultz@freedesktop.org>
Mon, 5 Sep 2005 13:45:23 +0000 (13:45 +0000)
committerKarl Schultz <kschultz@freedesktop.org>
Mon, 5 Sep 2005 13:45:23 +0000 (13:45 +0000)
src/mesa/shader/atifragshader.c

index ffd46b1095c32a6b8da7db5ad5aca9f9979e0970..3117467c3cfb3b970679ddf25111d1afb5d2942d 100644 (file)
@@ -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);