summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-09-18 19:29:26 -0600
committerKeith Whitwell <keith@tungstengraphics.com>2008-09-24 10:03:27 -0700
commit19d77d6cfa384142cc6ab4d9b3db4b28cefb6f19 (patch)
treebe638bbcb6306c48c5ff459953c56cb545ba027a
parent8e7d941d7a29aaf66f94892b3f97670c0e972c8c (diff)
temporarily set the FRAG_BIT_FOGC bit in InputsRead when fog is enabled
(cherry picked from commit 63be96bdc7e9f388a5c49295bd7e150462fd003a)
-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 5f7634b460..d471030f14 100644
--- a/src/mesa/main/texenvprogram.c
+++ b/src/mesa/main/texenvprogram.c
@@ -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;