From 8ca6250d724edb74f1ca980e2dcc8a6dfdf073c4 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Thu, 29 Jun 2006 16:47:09 +0000 Subject: [PATCH] cleanup, avoid magic values --- src/mesa/drivers/dri/r300/radeon_vtxfmt_a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/r300/radeon_vtxfmt_a.c b/src/mesa/drivers/dri/r300/radeon_vtxfmt_a.c index b46fee7e309..21f4d430482 100644 --- a/src/mesa/drivers/dri/r300/radeon_vtxfmt_a.c +++ b/src/mesa/drivers/dri/r300/radeon_vtxfmt_a.c @@ -74,7 +74,7 @@ void radeon_vb_to_rvb(r300ContextPtr rmesa, struct radeon_vertex_buffer *rvb, st for (i=0; i < ctx->Const.MaxTextureCoordUnits; i++) CONV_VB(VERT_ATTRIB_TEX0 + i, TexCoordPtr[i]); - for (i=0; i < 16; i++) + for (i=0; i < MAX_VERTEX_PROGRAM_ATTRIBS; i++) CONV_VB(VERT_ATTRIB_GENERIC0 + i, AttribPtr[VERT_ATTRIB_GENERIC0 + i]); rvb->Primitive = vb->Primitive; -- 2.30.2