mesa: set FRAG_BIT_FOGC bit in InputsUsed if FogOption!=GL_NONE
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 6 Oct 2008 18:29:29 +0000 (12:29 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 6 Oct 2008 18:29:29 +0000 (12:29 -0600)
src/mesa/shader/arbprogparse.c

index 8ce5348c09c8d2abb8606b26b61210531d7e6b0a..39988b5fca67c6c78afca7b18e8109da5cbb1e5d 100644 (file)
@@ -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;