temporarily set the FRAG_BIT_FOGC bit in InputsRead when fog is enabled
authorBrian <brian.paul@tungstengraphics.com>
Wed, 19 Sep 2007 01:29:26 +0000 (19:29 -0600)
committerKeith Whitwell <keith@tungstengraphics.com>
Wed, 24 Sep 2008 17:03:27 +0000 (10:03 -0700)
(cherry picked from commit 63be96bdc7e9f388a5c49295bd7e150462fd003a)

src/mesa/main/texenvprogram.c

index 5f7634b..d471030 100644 (file)
@@ -1100,6 +1100,7 @@ create_new_program(GLcontext *ctx, struct state_key *key,
        * a reduced value and not what is expected in FogOption
        */
       p.program->FogOption = ctx->Fog.Mode;
+      p.program->Base.InputsRead |= FRAG_BIT_FOGC; /* XXX new */
    } else
       p.program->FogOption = GL_NONE;