minor simplification in texcoord array import
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 13 Jun 2006 14:50:44 +0000 (14:50 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 13 Jun 2006 14:50:44 +0000 (14:50 +0000)
src/mesa/tnl/t_array_import.c

index 1b8fe0dd033a354445e335b246829aa8903a6f99..906515f8d8306d10ba60b41b295e2f768a0922cb 100644 (file)
@@ -313,7 +313,7 @@ void _tnl_vb_bind_arrays( GLcontext *ctx, GLint start, GLint end)
         i = index - VERT_ATTRIB_TEX0;
         _tnl_import_texcoord( ctx, i, GL_FALSE, GL_FALSE );
         tmp->TexCoord[i].count = VB->Count;
-        VB->AttribPtr[_TNL_ATTRIB_TEX0 + i] = &tmp->TexCoord[i];
+        VB->AttribPtr[index] = &tmp->TexCoord[i];
       }
       else {
         _tnl_constant_attrib(tnl, tmp, index);