r300/r500: make sure we detect constant buffer changes
authorJerome Glisse <glisse@freedesktop.org>
Tue, 12 May 2009 11:04:32 +0000 (13:04 +0200)
committerJerome Glisse <glisse@freedesktop.org>
Tue, 12 May 2009 11:04:32 +0000 (13:04 +0200)
This was broken with last merge see f48473e42511f8d37a239a07f791bc0a87209e5b
for explanations.

src/mesa/drivers/dri/r300/r300_fragprog_common.c

index 6eaad7655006375927e74326f74d5d6116cd2697..2a880e6d144010e64488e9d94b3944fb1637fb07 100644 (file)
@@ -281,7 +281,7 @@ void r300TranslateFragmentShader(GLcontext *ctx, struct gl_fragment_program *fp)
 
                r300_fp->translated = GL_TRUE;
 
-               r300UpdateStateParameters(ctx, _NEW_PROGRAM);
+               r300UpdateStateParameters(ctx, _NEW_PROGRAM | _NEW_PROGRAM_CONSTANTS);
 
                if (r300_fp->error || (RADEON_DEBUG & DEBUG_PIXEL))
                        r300->vtbl.FragmentProgramDump(&r300_fp->code);