From: Tilman Sauerbeck Date: Thu, 29 Jun 2006 16:47:09 +0000 (+0000) Subject: cleanup, avoid magic values X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8ca6250d724edb74f1ca980e2dcc8a6dfdf073c4;p=mesa.git cleanup, avoid magic values --- 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;