Don't let FragmentProgram._Active influence choice of vertex vs pixel

fog.
This commit is contained in:
Keith Whitwell 2005-05-11 16:30:02 +00:00
parent ac6728d2d9
commit 1e5772f0ba

View file

@ -158,7 +158,7 @@ _swrast_update_fog_hint( GLcontext *ctx )
{
SWcontext *swrast = SWRAST_CONTEXT(ctx);
swrast->_PreferPixelFog = (!swrast->AllowVertexFog ||
ctx->FragmentProgram._Active ||
ctx->FragmentProgram._Enabled || /* not _Active! */
(ctx->Hint.Fog == GL_NICEST &&
swrast->AllowPixelFog));
}