summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-04-17 14:05:08 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-04-17 14:05:08 +0000
commitc1a1d1cb31a3f8d072199b6d37a1dc29e1db247a (patch)
tree30462334d4a815d317c1abcb3a3d12ed642adcff
parent994769a5622a27e39cf9fc7c1db0ab0bd977909e (diff)
fix loop upper bound in _tnl_copy_from_current(), bug 6631
-rw-r--r--src/mesa/tnl/t_vtx_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_vtx_api.c b/src/mesa/tnl/t_vtx_api.c
index c86c160d24..50e315383a 100644
--- a/src/mesa/tnl/t_vtx_api.c
+++ b/src/mesa/tnl/t_vtx_api.c
@@ -194,7 +194,7 @@ static void _tnl_copy_from_current( GLcontext *ctx )
tnl->vtx.CurrentFloatEdgeFlag =
(GLfloat)ctx->Current.EdgeFlag;
- for (i = _TNL_ATTRIB_POS+1 ; i <= _TNL_ATTRIB_MAX ; i++)
+ for (i = _TNL_ATTRIB_POS+1 ; i < _TNL_ATTRIB_MAX ; i++)
switch (tnl->vtx.attrsz[i]) {
case 4: tnl->vtx.attrptr[i][3] = tnl->vtx.current[i][3];
case 3: tnl->vtx.attrptr[i][2] = tnl->vtx.current[i][2];