-/* $Id: context.c,v 1.5 1999/09/04 14:40:49 keithw Exp $ */
+/* $Id: context.c,v 1.6 1999/09/07 22:31:30 brianp Exp $ */
/*
* Mesa 3-D graphics library
ctx->IntegerAccumMode = GL_TRUE;
ctx->IntegerAccumScaler = 0.0;
- /* multitexture */
- ctx->TexCoordUnit = 0;
-
/* Renderer and client attribute stacks */
ctx->AttribStackDepth = 0;
ctx->ClientAttribStackDepth = 0;
-/* $Id: enable.c,v 1.3 1999/08/26 14:50:49 keithw Exp $ */
+/* $Id: enable.c,v 1.4 1999/09/07 22:31:30 brianp Exp $ */
/*
* Mesa 3-D graphics library
ctx->Array.Index.Enabled = state;
break;
case GL_TEXTURE_COORD_ARRAY:
- ctx->Array.TexCoord[ctx->TexCoordUnit].Enabled = state;
+ ctx->Array.TexCoord[ctx->Array.ActiveTexture].Enabled = state;
break;
case GL_EDGE_FLAG_ARRAY:
ctx->Array.EdgeFlag.Enabled = state;
case GL_INDEX_ARRAY:
return ctx->Array.Index.Enabled;
case GL_TEXTURE_COORD_ARRAY:
- return ctx->Array.TexCoord[ctx->TexCoordUnit].Enabled;
+ return ctx->Array.TexCoord[ctx->Array.ActiveTexture].Enabled;
case GL_EDGE_FLAG_ARRAY:
return ctx->Array.EdgeFlag.Enabled;
default:
ctx->Array.Index.Enabled = state;
break;
case GL_TEXTURE_COORD_ARRAY:
- ctx->Array.TexCoord[ctx->TexCoordUnit].Enabled = state;
+ ctx->Array.TexCoord[ctx->Array.ActiveTexture].Enabled = state;
break;
case GL_EDGE_FLAG_ARRAY:
ctx->Array.EdgeFlag.Enabled = state;
-/* $Id: texstate.c,v 1.1 1999/08/19 00:55:41 jtg Exp $ */
+/* $Id: texstate.c,v 1.2 1999/09/07 22:31:30 brianp Exp $ */
/*
* Mesa 3-D graphics library
if (target >= GL_TEXTURE0_ARB && target < GL_TEXTURE0_ARB + maxUnits) {
GLint texUnit = target - GL_TEXTURE0_ARB;
- ctx->TexCoordUnit = texUnit;
ctx->Texture.CurrentUnit = texUnit;
ctx->Texture.CurrentTransformUnit = texUnit;
if (ctx->Driver.ActiveTexture) {
-/* $Id: varray.c,v 1.2 1999/08/26 14:50:49 keithw Exp $ */
+/* $Id: varray.c,v 1.3 1999/09/07 22:31:30 brianp Exp $ */
/*
* Mesa 3-D graphics library
CHECK_CONTEXT;
ctx = CC;
- texUnit = ctx->TexCoordUnit;
+ texUnit = ctx->Array.ActiveTexture;
if (size<1 || size>4) {
gl_error( ctx, GL_INVALID_VALUE, "glTexCoordPointer(size)" );
gl_DisableClientState( ctx, GL_INDEX_ARRAY );
/* Texcoords */
- coordUnitSave = ctx->TexCoordUnit;
+ coordUnitSave = ctx->Array.ActiveTexture;
if (tflag) {
GLint i;
GLint factor = ctx->Array.TexCoordInterleaveFactor;