summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_context.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-04-26 17:25:53 +0000
committerBrian Paul <[email protected]>2005-04-26 17:25:53 +0000
commitc03b6f40baae1d11deaa9d1c7951ec8b5f80be81 (patch)
treeb340c9e98ff8a099e301320394681a93a469458f /src/mesa/tnl/t_context.c
parentc039af165d5919008c6df599795951f85dea164d (diff)
enable fog render input if fragment program fog option set
Diffstat (limited to 'src/mesa/tnl/t_context.c')
-rw-r--r--src/mesa/tnl/t_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_context.c b/src/mesa/tnl/t_context.c
index ef23784f6a0..40b030cb12e 100644
--- a/src/mesa/tnl/t_context.c
+++ b/src/mesa/tnl/t_context.c
@@ -175,7 +175,7 @@ _tnl_InvalidateState( GLcontext *ctx, GLuint new_state )
tnl->render_inputs |= (_TNL_BIT_POS|_TNL_BIT_INDEX);
}
- if (ctx->Fog.Enabled)
+ if (ctx->Fog.Enabled || ctx->FragmentProgram.Current->FogOption != GL_NONE)
tnl->render_inputs |= _TNL_BIT_FOG;
if (ctx->Polygon.FrontMode != GL_FILL ||