Update for FragmentProgram._Active
authorKeith Whitwell <keith@tungstengraphics.com>
Tue, 10 May 2005 11:40:52 +0000 (11:40 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Tue, 10 May 2005 11:40:52 +0000 (11:40 +0000)
src/mesa/tnl/t_context.c

index 5e8b2324dc8b234cafade75b42225df3c42ea26d..48119d2d58e5d97124e07ee3f934c27ab218664b 100644 (file)
@@ -176,8 +176,8 @@ _tnl_InvalidateState( GLcontext *ctx, GLuint new_state )
    }
     
    if (ctx->Fog.Enabled ||
-       (ctx->FragmentProgram.Enabled &&
-        ctx->FragmentProgram.Current->FogOption != GL_NONE))
+       (ctx->FragmentProgram._Active &&
+        ctx->FragmentProgram._Current->FogOption != GL_NONE))
       tnl->render_inputs |= _TNL_BIT_FOG;
 
    if (ctx->Polygon.FrontMode != GL_FILL ||