this should use the configured number not the MAX, this has no effect until
authorDave Airlie <airliedfreedesktop.org>
Fri, 12 May 2006 03:50:10 +0000 (03:50 +0000)
committerDave Airlie <airliedfreedesktop.org>
Fri, 12 May 2006 03:50:10 +0000 (03:50 +0000)
the core mesa swrast number is fixed, just spotted this on the way past

src/mesa/drivers/dri/r300/radeon_vtxfmt_a.c

index 63c5419f384cd0ebf48a45f9ec5325bf6f45e411..1044973b00151f744023ca8d6fb5feaa6dbda3a9 100644 (file)
@@ -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;