diff options
author | Dave Airlie <airliedfreedesktop.org> | 2006-05-12 03:50:10 +0000 |
---|---|---|
committer | Dave Airlie <airliedfreedesktop.org> | 2006-05-12 03:50:10 +0000 |
commit | 5d7ab75b02b023bc3fb258362221d9cda49fc547 (patch) | |
tree | 487b18c96c5ac370dea58e410b4ae12c74ce509f /src/mesa/drivers | |
parent | 88cf5aa783fc16043b31bc4cc0744412712dc22f (diff) |
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
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/r300/radeon_vtxfmt_a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/radeon_vtxfmt_a.c b/src/mesa/drivers/dri/r300/radeon_vtxfmt_a.c index 63c5419f38..1044973b00 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; |