summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/arbprogparse.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-10-06 12:29:29 -0600
committerBrian Paul <[email protected]>2008-10-06 12:29:29 -0600
commitf8baad2d255c77c47dddeddcaf719e163e9556fb (patch)
treec762fcf01787c628b2dc2b264583c3a10dbcb81b /src/mesa/shader/arbprogparse.c
parent6e34fc0d374263ca40855ba4dcc237d961a79e34 (diff)
mesa: set FRAG_BIT_FOGC bit in InputsUsed if FogOption!=GL_NONE
Diffstat (limited to 'src/mesa/shader/arbprogparse.c')
-rw-r--r--src/mesa/shader/arbprogparse.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c
index 8ce5348c09c..39988b5fca6 100644
--- a/src/mesa/shader/arbprogparse.c
+++ b/src/mesa/shader/arbprogparse.c
@@ -3863,6 +3863,9 @@ _mesa_parse_arb_fragment_program(GLcontext* ctx, GLenum target,
program->FogOption = ap.FogOption;
program->UsesKill = ap.UsesKill;
+ if (program->FogOption)
+ program->Base.InputsRead |= FRAG_BIT_FOGC;
+
if (program->Base.Instructions)
_mesa_free(program->Base.Instructions);
program->Base.Instructions = ap.Base.Instructions;