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 00c4ae4bc9c57ac1584090fe37397c37a613bc05..4a4d1b880a3ea2073a106042e600faf3c68f73b9 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));
 }