temporarily set the FRAG_BIT_FOGC bit in InputsRead when fog is enabled

This commit is contained in:
Brian
2007-09-18 19:29:26 -06:00
parent 3f0e04e0e6
commit 63be96bdc7

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