temporarily set the FRAG_BIT_FOGC bit in InputsRead when fog is enabled

(cherry picked from commit 63be96bdc7)
This commit is contained in:
Brian 2007-09-18 19:29:26 -06:00 committed by Keith Whitwell
parent 8e7d941d7a
commit 19d77d6cfa

View 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;