Don't let FragmentProgram._Active influence choice of vertex vs pixel
authorKeith Whitwell <keith@tungstengraphics.com>
Wed, 11 May 2005 16:30:02 +0000 (16:30 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Wed, 11 May 2005 16:30:02 +0000 (16:30 +0000)
fog.

src/mesa/swrast/s_context.c

index 00c4ae4..4a4d1b8 100644 (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));
 }