summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_span.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-10-31 19:46:55 +0000
committerBrian Paul <[email protected]>2005-10-31 19:46:55 +0000
commitdcf4c17fb1624af47181c63af4c3ad29f919c17a (patch)
treea9a58f02c0ff551f9026098cc9ccd351424c492c /src/mesa/swrast/s_span.c
parent821b3dd562c0ec4560e50f29084c32653cf18c9d (diff)
check swrast->_FogEnabled instead of ctx->Fog.Enabled
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 5e26064c64c..fbff31b90e3 100644
--- a/src/mesa/swrast/s_span.c
+++ b/src/mesa/swrast/s_span.c
@@ -868,7 +868,7 @@ _swrast_write_index_span( GLcontext *ctx, struct sw_span *span)
}
/* Interpolate the color indexes if needed */
- if (ctx->Fog.Enabled ||
+ if (swrast->_FogEnabled ||
ctx->Color.IndexLogicOpEnabled ||
ctx->Color.IndexMask != 0xffffffff ||
(span->arrayMask & SPAN_COVERAGE)) {
@@ -878,7 +878,7 @@ _swrast_write_index_span( GLcontext *ctx, struct sw_span *span)
}
/* Fog */
- if (ctx->Fog.Enabled) {
+ if (swrast->_FogEnabled) {
_swrast_fog_ci_span(ctx, span);
}