swrast: Fix memory leaks in blit_linear.
[mesa.git] / src / mesa / swrast / s_fog.c
index d808e2b2a2b9079738aad843ab4a78d9a1f00724..ea59de1602007515d1c46da98df88967e3308b6e 100644 (file)
@@ -158,7 +158,7 @@ _swrast_fog_rgba_span( const struct gl_context *ctx, SWspan *span )
       /* The span's fog values are fog coordinates, now compute blend factors
        * and blend the fragment colors with the fog color.
        */
-      switch (swrast->_FogMode) {
+      switch (ctx->Fog.Mode) {
       case GL_LINEAR:
          {
             const GLfloat fogEnd = ctx->Fog.End;