diff options
author | Keith Whitwell <[email protected]> | 2005-11-22 10:58:05 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2005-11-22 10:58:05 +0000 |
commit | 5a771857d9069773e5a6ede9694b0e5b8a03ff67 (patch) | |
tree | ec5e77edcaddda00f02f2feb3d85351cf72c1fc9 | |
parent | bf44f6cfac73ee9c96f4753fb32f6e49aab13d77 (diff) |
Make sure tnl->_DoVertexFog is kept uptodate. Fixes fog in i915
driver.
-rw-r--r-- | src/mesa/tnl/t_context.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/tnl/t_context.c b/src/mesa/tnl/t_context.c index 5aea2d16281..30b2947323a 100644 --- a/src/mesa/tnl/t_context.c +++ b/src/mesa/tnl/t_context.c @@ -273,6 +273,9 @@ _tnl_allow_vertex_fog( GLcontext *ctx, GLboolean value ) { TNLcontext *tnl = TNL_CONTEXT(ctx); tnl->AllowVertexFog = value; + tnl->_DoVertexFog = (tnl->AllowVertexFog && (ctx->Hint.Fog != GL_NICEST)) + || !tnl->AllowPixelFog; + } void @@ -280,5 +283,7 @@ _tnl_allow_pixel_fog( GLcontext *ctx, GLboolean value ) { TNLcontext *tnl = TNL_CONTEXT(ctx); tnl->AllowPixelFog = value; + tnl->_DoVertexFog = (tnl->AllowVertexFog && (ctx->Hint.Fog != GL_NICEST)) + || !tnl->AllowPixelFog; } |