Revert my change from 1.37 as being bogus (see ensuing list discussion for
authorAdam Jackson <ajax@freedesktop.org>
Thu, 30 Mar 2006 19:23:38 +0000 (19:23 +0000)
committerAdam Jackson <ajax@freedesktop.org>
Thu, 30 Mar 2006 19:23:38 +0000 (19:23 +0000)
rationale).

src/mesa/main/api_arrayelt.c

index d4c69d25ea8b7d45ad73ecffe8f29b84d041dae1..e905f164025fe2347dd81d6692d25b9d6a7be6c8 100644 (file)
@@ -670,7 +670,7 @@ static void _ae_update_state( GLcontext *ctx )
       aa++;
    }
    for (i = 0; i < ctx->Const.MaxTextureCoordUnits; i++) {
-      if (ctx->Array.TexCoord[i].Enabled && ctx->Array.TexCoord[i].Ptr) {
+      if (ctx->Array.TexCoord[i].Enabled) {
          /* NOTE: we use generic glVertexAttrib functions here.
           * If we ever de-alias conventional/generic vertex attribs this
           * will have to change.
@@ -685,8 +685,7 @@ static void _ae_update_state( GLcontext *ctx )
 
    /* generic vertex attribute arrays */
    for (i = 1; i < VERT_ATTRIB_MAX; i++) {  /* skip zero! */
-      if (ctx->Array.VertexAttrib[i].Enabled &&
-            ctx->Array.VertexAttrib[i].Ptr) {
+      if (ctx->Array.VertexAttrib[i].Enabled) {
          struct gl_client_array *attribArray = &ctx->Array.VertexAttrib[i];
          at->array = attribArray;
          /* Note: we can't grab the _glapi_Dispatch->VertexAttrib1fvNV