diff --git a/src/mesa/main/atifragshader.c b/src/mesa/main/atifragshader.c index f8fd16a3504..6baa6a4a556 100644 --- a/src/mesa/main/atifragshader.c +++ b/src/mesa/main/atifragshader.c @@ -827,7 +827,8 @@ _mesa_SetFragmentShaderConstantATI(GLuint dst, const GLfloat * value) curProg->LocalConstDef |= 1 << dstindex; } else { - FLUSH_VERTICES(ctx, _NEW_PROGRAM, 0); + FLUSH_VERTICES(ctx, 0, 0); + ctx->NewDriverState |= ST_NEW_FS_CONSTANTS; COPY_4V(ctx->ATIFragmentShader.GlobalConstants[dstindex], value); } }