From: Brian Paul Date: Mon, 6 Oct 2008 18:29:29 +0000 (-0600) Subject: mesa: set FRAG_BIT_FOGC bit in InputsUsed if FogOption!=GL_NONE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f8baad2d255c77c47dddeddcaf719e163e9556fb;p=mesa.git mesa: set FRAG_BIT_FOGC bit in InputsUsed if FogOption!=GL_NONE --- diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c index 8ce5348c09c..39988b5fca6 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;