enable fog render input if fragment program fog option set

This commit is contained in:
Brian Paul 2005-04-26 17:25:53 +00:00
parent c039af165d
commit c03b6f40ba
1 changed files with 1 additions and 1 deletions

View File

@ -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 ||