From f8baad2d255c77c47dddeddcaf719e163e9556fb Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 6 Oct 2008 12:29:29 -0600 Subject: [PATCH] mesa: set FRAG_BIT_FOGC bit in InputsUsed if FogOption!=GL_NONE --- src/mesa/shader/arbprogparse.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.30.2