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

This commit is contained in:
Brian Paul 2008-10-06 12:29:29 -06:00
parent 6e34fc0d37
commit f8baad2d25

View 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;