summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader
diff options
context:
space:
mode:
authorKarl Schultz <[email protected]>2005-09-05 13:45:23 +0000
committerKarl Schultz <[email protected]>2005-09-05 13:45:23 +0000
commite81cbd876ed400ccb2ed452f375a7c2cb5ddd48f (patch)
tree43a6f0255393388a2808f9cad08392cd76aad59f /src/mesa/shader
parentb4b040f7d83f5f4917c48bf5833394d550e30421 (diff)
fix var declaration so that a C compiler can build it.
Diffstat (limited to 'src/mesa/shader')
-rw-r--r--src/mesa/shader/atifragshader.c3
1 files changed, 2 insertions, 1 deletions
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);