From b3e8e1cd4c1584f735e35914861ae2e8ae5b6b2b Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Thu, 2 Jul 2009 11:28:56 +0100 Subject: mesa: ensure UsesFogFragCoord value is set for non-glsl shaders With recent changes to support frontfacing in glsl, it is necessary to ensure that the UsesFogFragCoord value is accurate in all shaders. We were previously not setting it for fixed-function and ARB_fs shaders. --- src/mesa/shader/programopt.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesa/shader/programopt.c') diff --git a/src/mesa/shader/programopt.c b/src/mesa/shader/programopt.c index f70c75cec8..ac5fe0f691 100644 --- a/src/mesa/shader/programopt.c +++ b/src/mesa/shader/programopt.c @@ -396,6 +396,7 @@ _mesa_append_fog_code(GLcontext *ctx, struct gl_fragment_program *fprog) fprog->Base.Instructions = newInst; fprog->Base.NumInstructions = inst - newInst; fprog->Base.InputsRead |= FRAG_BIT_FOGC; + fprog->UsesFogFragCoord = GL_TRUE; /* XXX do this? fprog->FogOption = GL_NONE; */ } -- cgit v1.2.3