diff options
author | Brian Paul <[email protected]> | 2000-09-28 22:44:30 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-09-28 22:44:30 +0000 |
commit | eb6c6439ae23e47b79b72f3737b6d0d14e1f9f26 (patch) | |
tree | 186e670bf1fac283352770d96e27576ff1c8d074 /src/mesa/main/state.c | |
parent | 37a6211795cfd0a4431bdb7c676acf54f29df994 (diff) |
removed ctx->Texture.Enabled, use ctx->Texture.ReallyEnabled instead
Diffstat (limited to 'src/mesa/main/state.c')
-rw-r--r-- | src/mesa/main/state.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index 3578d28f899..f1cbf9814c4 100644 --- a/src/mesa/main/state.c +++ b/src/mesa/main/state.c @@ -1,4 +1,4 @@ -/* $Id: state.c,v 1.28 2000/09/26 20:53:53 brianp Exp $ */ +/* $Id: state.c,v 1.29 2000/09/28 22:44:30 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -671,7 +671,7 @@ static void update_fog_mode( GLcontext *ctx ) int old_mode = ctx->FogMode; if (ctx->Fog.Enabled) { - if (ctx->Texture.Enabled) + if (ctx->Texture.ReallyEnabled) ctx->FogMode = FOG_FRAGMENT; else if (ctx->Hint.Fog == GL_NICEST) ctx->FogMode = FOG_FRAGMENT; @@ -818,7 +818,7 @@ void gl_update_state( GLcontext *ctx ) gl_update_client_state( ctx ); if ((ctx->NewState & NEW_TEXTURE_ENABLE) && - (ctx->Enabled & ENABLE_TEX_ANY) != ctx->Texture.Enabled) + (ctx->Enabled & ENABLE_TEX_ANY) != ctx->Texture.ReallyEnabled) ctx->NewState |= NEW_TEXTURING | NEW_RASTER_OPS; if (ctx->NewState & NEW_TEXTURE_ENV) { @@ -872,7 +872,6 @@ void gl_update_state( GLcontext *ctx ) } } - ctx->Texture.Enabled = ctx->Enabled & ENABLE_TEX_ANY; ctx->NeedNormals = (ctx->Light.Enabled || ctx->Texture.NeedNormals); } @@ -1072,7 +1071,7 @@ void gl_update_state( GLcontext *ctx ) } ctx->NeedEyeNormals = ctx->NeedEyeCoords; } - if (ctx->Texture.Enabled || ctx->RenderMode==GL_FEEDBACK) { + if (ctx->Texture.ReallyEnabled || ctx->RenderMode==GL_FEEDBACK) { if (ctx->Texture.NeedEyeCoords) ctx->NeedEyeCoords = GL_TRUE; if (ctx->Texture.NeedNormals) ctx->NeedNormals = ctx->NeedEyeNormals = GL_TRUE; |