From 5d7ab75b02b023bc3fb258362221d9cda49fc547 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 12 May 2006 03:50:10 +0000 Subject: [PATCH] this should use the configured number not the MAX, this has no effect until the core mesa swrast number is fixed, just spotted this on the way past --- 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 63c5419f384..1044973b001 100644 --- a/src/mesa/drivers/dri/r300/radeon_vtxfmt_a.c +++ b/src/mesa/drivers/dri/r300/radeon_vtxfmt_a.c @@ -71,7 +71,7 @@ void radeon_vb_to_rvb(r300ContextPtr rmesa, struct radeon_vertex_buffer *rvb, st CONV_VB(VERT_ATTRIB_COLOR1, SecondaryColorPtr[0]); CONV_VB(VERT_ATTRIB_FOG, FogCoordPtr); - for (i=0; i < MAX_TEXTURE_COORD_UNITS; i++) + for (i=0; i < ctx->Const.MaxTextureCoordUnits; i++) CONV_VB(VERT_ATTRIB_TEX0 + i, TexCoordPtr[i]); rvb->Primitive = vb->Primitive; -- 2.30.2