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)
committerBrian <brian.paul@tungstengraphics.com>
Wed, 19 Sep 2007 01:38:35 +0000 (19:38 -0600)
src/mesa/main/texenvprogram.c

index 72b54b27d9a6a61d2c42adc1b74a1ce3031717a4..37f8fc8090813daee6aeddd5b80d7210a4134a38 100644 (file)
@@ -1081,6 +1081,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;