diff options
author | Brian Paul <[email protected]> | 2002-10-08 23:59:33 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-10-08 23:59:33 +0000 |
commit | 59c5cf35c92e969f66eefd27809e72089b731701 (patch) | |
tree | 7b0abf04f0eeb0726f2e02458b527b4bea81cf86 /src/mesa/main | |
parent | 614301facaf7f9943270f227a5c6503b47871a90 (diff) |
finally get rid of ctx->Texture._ReallyEnabled field
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/context.c | 3 | ||||
-rw-r--r-- | src/mesa/main/mtypes.h | 8 | ||||
-rw-r--r-- | src/mesa/main/state.c | 14 |
3 files changed, 5 insertions, 20 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index ecf78d62e63..e227de976dc 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -1,4 +1,4 @@ -/* $Id: context.c,v 1.179 2002/10/04 17:37:45 brianp Exp $ */ +/* $Id: context.c,v 1.180 2002/10/08 23:59:33 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -1306,7 +1306,6 @@ init_attrib_groups( GLcontext *ctx ) /* Texture group */ ctx->Texture.CurrentUnit = 0; /* multitexture */ - ctx->Texture._ReallyEnabled = 0; /* XXX obsolete */ ctx->Texture._EnabledUnits = 0; for (i=0; i<MAX_TEXTURE_UNITS; i++) init_texture_unit( ctx, i ); diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index e345c30a4c3..772e1970adc 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -1,4 +1,4 @@ -/* $Id: mtypes.h,v 1.93 2002/10/04 19:10:08 brianp Exp $ */ +/* $Id: mtypes.h,v 1.94 2002/10/08 23:59:33 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -964,12 +964,6 @@ struct gl_texture_attrib { GLuint CurrentUnit; /* Active texture unit */ GLuint _EnabledUnits; /* one bit set for each really-enabled unit */ - /* XXX this field will go away, use _EnabledUnits instead! */ - GLuint _ReallyEnabled; /* enables for all texture units: */ - /* = (Unit[0]._ReallyEnabled << 0) | */ - /* (Unit[1]._ReallyEnabled << 4) | */ - /* (Unit[2]._ReallyEnabled << 8) | etc... */ - GLuint _GenFlags; /* for texgen */ GLuint _TexGenEnabled; GLuint _TexMatEnabled; diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index a5c5deafa46..a7414241a01 100644 --- a/src/mesa/main/state.c +++ b/src/mesa/main/state.c @@ -1,4 +1,4 @@ -/* $Id: state.c,v 1.93 2002/10/02 21:44:08 brianp Exp $ */ +/* $Id: state.c,v 1.94 2002/10/08 23:59:33 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -772,7 +772,6 @@ update_texture_state( GLcontext *ctx ) { GLuint unit; - ctx->Texture._ReallyEnabled = 0; /* XXX obsolete */ ctx->Texture._EnabledUnits = 0; ctx->Texture._GenFlags = 0; ctx->_NeedNormals &= ~NEED_NORMALS_TEXGEN; @@ -854,15 +853,8 @@ update_texture_state( GLcontext *ctx ) continue; } - /* Texture._ReallyEnabled records the enable state for all units in - * one word. - */ - { - GLuint flag = texUnit->_ReallyEnabled << (unit * NUM_TEXTURE_TARGETS); - ctx->Texture._ReallyEnabled |= flag; /* XXX obsolete field! */ - if (texUnit->_ReallyEnabled) - ctx->Texture._EnabledUnits |= (1 << unit); - } + if (texUnit->_ReallyEnabled) + ctx->Texture._EnabledUnits |= (1 << unit); if (texUnit->TexGenEnabled) { if (texUnit->TexGenEnabled & S_BIT) { |