diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2008-10-06 12:29:29 -0600 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-10-06 12:29:29 -0600 |
commit | f8baad2d255c77c47dddeddcaf719e163e9556fb (patch) | |
tree | c762fcf01787c628b2dc2b264583c3a10dbcb81b /src | |
parent | 6e34fc0d374263ca40855ba4dcc237d961a79e34 (diff) |
mesa: set FRAG_BIT_FOGC bit in InputsUsed if FogOption!=GL_NONE
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/shader/arbprogparse.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c index 8ce5348c09..39988b5fca 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; |