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