From e713ef66ef759d902c08a8cb8eb0e0cfe9373699 Mon Sep 17 00:00:00 2001 From: Brian Date: Tue, 27 Mar 2007 14:02:04 -0600 Subject: fix a fragment fog regression --- src/mesa/tnl/t_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/mesa/tnl/t_context.c b/src/mesa/tnl/t_context.c index 255c2bdf90..3017c73cf1 100644 --- a/src/mesa/tnl/t_context.c +++ b/src/mesa/tnl/t_context.c @@ -138,7 +138,7 @@ _tnl_InvalidateState( GLcontext *ctx, GLuint new_state ) } if (ctx->Fog.Enabled || - (ctx->FragmentProgram._Active && + ((ctx->FragmentProgram._Active || ctx->FragmentProgram._Current) && (ctx->FragmentProgram._Current->FogOption != GL_NONE || (ctx->FragmentProgram._Current->Base.InputsRead & FRAG_BIT_FOGC)))) RENDERINPUTS_SET( tnl->render_inputs_bitset, _TNL_ATTRIB_FOG ); -- cgit v1.2.3