From 1e5772f0ba7300e19d1980c0e30e358e71c5c685 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Wed, 11 May 2005 16:30:02 +0000 Subject: [PATCH] Don't let FragmentProgram._Active influence choice of vertex vs pixel fog. --- src/mesa/swrast/s_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/swrast/s_context.c b/src/mesa/swrast/s_context.c index 00c4ae4bc9c..4a4d1b880a3 100644 --- a/src/mesa/swrast/s_context.c +++ b/src/mesa/swrast/s_context.c @@ -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)); } -- 2.30.2