summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_context.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_context.c
parent821b3dd562c0ec4560e50f29084c32653cf18c9d (diff)
check swrast->_FogEnabled instead of ctx->Fog.Enabled
Diffstat (limited to 'src/mesa/swrast/s_context.c')
-rw-r--r--src/mesa/swrast/s_context.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_context.c b/src/mesa/swrast/s_context.c
index 05b1d8901e2..7b24d3f1fc8 100644
--- a/src/mesa/swrast/s_context.c
+++ b/src/mesa/swrast/s_context.c
@@ -54,12 +54,13 @@
static void
_swrast_update_rasterflags( GLcontext *ctx )
{
+ SWcontext *swrast = SWRAST_CONTEXT(ctx);
GLbitfield rasterMask = 0;
if (ctx->Color.AlphaEnabled) rasterMask |= ALPHATEST_BIT;
if (ctx->Color.BlendEnabled) rasterMask |= BLEND_BIT;
if (ctx->Depth.Test) rasterMask |= DEPTH_BIT;
- if (ctx->Fog.Enabled) rasterMask |= FOG_BIT;
+ if (swrast->_FogEnabled) rasterMask |= FOG_BIT;
if (ctx->Scissor.Enabled) rasterMask |= CLIP_BIT;
if (ctx->Stencil.Enabled) rasterMask |= STENCIL_BIT;
if (ctx->Visual.rgbMode) {