From: Brian Paul Date: Thu, 14 May 2009 14:22:29 +0000 (-0600) Subject: vbo: s/8/MAX_TEXTURE_COORD_UNITS/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=899c524a49fe5dc7413656380ebd65bbd061c042;p=mesa.git vbo: s/8/MAX_TEXTURE_COORD_UNITS/ --- diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c index f4ad394f516..fdb501815d8 100644 --- a/src/mesa/vbo/vbo_exec_array.c +++ b/src/mesa/vbo/vbo_exec_array.c @@ -115,7 +115,7 @@ static void bind_array_obj( GLcontext *ctx ) } exec->array.legacy_array[VERT_ATTRIB_EDGEFLAG] = &arrayObj->EdgeFlag; - for (i = 0; i < 8; i++) + for (i = 0; i < MAX_TEXTURE_COORD_UNITS; i++) exec->array.legacy_array[VERT_ATTRIB_TEX0 + i] = &arrayObj->TexCoord[i]; for (i = 0; i < VERT_ATTRIB_MAX; i++)