diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2004-01-09 15:31:08 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2004-01-09 15:31:08 +0000 |
commit | ed98b867af836d7b87529716e95bc611a5695d4d (patch) | |
tree | 512690ffa57e012f75e1fa22c181a0e6aa07f2f7 /src/mesa/tnl/t_array_import.c | |
parent | a05b1549f7b6da7d9313b9addf2d01b9c61f34d7 (diff) |
Change < to <= when testing counts against ctx->Const.MaxArrayLockSize,
per Daniel Borca.
Also, added XXX comments to mark where there may be a problem with the
calls to _tnl_vb_bind_arrays(). Is the last parameter a count or index?
Diffstat (limited to 'src/mesa/tnl/t_array_import.c')
-rw-r--r-- | src/mesa/tnl/t_array_import.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mesa/tnl/t_array_import.c b/src/mesa/tnl/t_array_import.c index 44ca2663c8..bac7936ba5 100644 --- a/src/mesa/tnl/t_array_import.c +++ b/src/mesa/tnl/t_array_import.c @@ -1,8 +1,8 @@ /* * Mesa 3-D graphics library - * Version: 5.1 + * Version: 6.0 * - * Copyright (C) 1999-2003 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2004 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -238,9 +238,10 @@ static void _tnl_import_attrib( GLcontext *ctx, - - - +/* + * XXX Is count correct? From some of the callers, it appears that + * this should perhaps be an "end" index, ala the "start" index. + */ void _tnl_vb_bind_arrays( GLcontext *ctx, GLint start, GLsizei count ) { TNLcontext *tnl = TNL_CONTEXT(ctx); |