cleanup, avoid magic values
authorTilman Sauerbeck <tilman@freedesktop.org>
Thu, 29 Jun 2006 16:47:09 +0000 (16:47 +0000)
committerTilman Sauerbeck <tilman@freedesktop.org>
Thu, 29 Jun 2006 16:47:09 +0000 (16:47 +0000)
src/mesa/drivers/dri/r300/radeon_vtxfmt_a.c

index b46fee7e309b8a31ae78d03009aa1c6b5eb6a520..21f4d430482a6a81a048b031c854f62bb0c8e931 100644 (file)
@@ -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;