From 212d7e836979552eae7f91849295a8c7542fcf01 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 13 Jun 2006 14:50:44 +0000 Subject: [PATCH] minor simplification in texcoord array import --- src/mesa/tnl/t_array_import.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/tnl/t_array_import.c b/src/mesa/tnl/t_array_import.c index 1b8fe0d..906515f 100644 --- a/src/mesa/tnl/t_array_import.c +++ b/src/mesa/tnl/t_array_import.c @@ -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); -- 2.7.4