summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_span.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/swrast/s_span.c')
-rw-r--r--src/mesa/swrast/s_span.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_span.c b/src/mesa/swrast/s_span.c
index ee46f323076..cdd97f613a1 100644
--- a/src/mesa/swrast/s_span.c
+++ b/src/mesa/swrast/s_span.c
@@ -1079,7 +1079,7 @@ _swrast_write_rgba_span( GLcontext *ctx, struct sw_span *span)
}
/* Fog */
- if (ctx->Fog.Enabled) {
+ if (swrast->_FogEnabled) {
_swrast_fog_rgba_span(ctx, span);
monoColor = GL_FALSE;
}
@@ -1354,7 +1354,7 @@ _swrast_write_texture_span( GLcontext *ctx, struct sw_span *span)
}
/* Fog */
- if (ctx->Fog.Enabled) {
+ if (swrast->_FogEnabled) {
_swrast_fog_rgba_span(ctx, span);
}