diff options
author | Tilman Sauerbeck <tilman@freedesktop.org> | 2006-06-29 16:47:09 +0000 |
---|---|---|
committer | Tilman Sauerbeck <tilman@freedesktop.org> | 2006-06-29 16:47:09 +0000 |
commit | 8ca6250d724edb74f1ca980e2dcc8a6dfdf073c4 (patch) | |
tree | 4ec7741fd091eb76d8167a06f056cae6cae0db76 /src/mesa/drivers/dri | |
parent | ff5b590382d716dccd9d3122ead9a9236f019aaa (diff) |
cleanup, avoid magic values
Diffstat (limited to 'src/mesa/drivers/dri')
-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 b46fee7e30..21f4d43048 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; |