summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-09-18 19:29:26 -0600
committerBrian <[email protected]>2007-09-18 19:38:35 -0600
commit63be96bdc7e9f388a5c49295bd7e150462fd003a (patch)
treef9163fa12db46267f80737eb3485bac6708f7d1b /src/mesa/main
parent3f0e04e0e62b853382a018cb6a69eea14e85712d (diff)
temporarily set the FRAG_BIT_FOGC bit in InputsRead when fog is enabled
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/texenvprogram.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/texenvprogram.c b/src/mesa/main/texenvprogram.c
index 72b54b27d9a..37f8fc80908 100644
--- a/src/mesa/main/texenvprogram.c
+++ b/src/mesa/main/texenvprogram.c
@@ -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;