Mesa (master): mesa: set FRAG_BIT_FOGC bit in InputsUsed if FogOption!= GL_NONE

Brian Paul brianp at kemper.freedesktop.org
Mon Oct 6 18:29:36 UTC 2008


Module: Mesa
Branch: master
Commit: f8baad2d255c77c47dddeddcaf719e163e9556fb
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f8baad2d255c77c47dddeddcaf719e163e9556fb

Author: Brian Paul <brian.paul at tungstengraphics.com>
Date:   Mon Oct  6 12:29:29 2008 -0600

mesa: set FRAG_BIT_FOGC bit in InputsUsed if FogOption!=GL_NONE

---

 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 8ce5348..39988b5 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;




More information about the mesa-commit mailing list