diff options
author | Brian Paul <[email protected]> | 2003-11-10 19:08:37 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2003-11-10 19:08:37 +0000 |
commit | a2b9bad251b058f6255fa037b842c5465c0609a2 (patch) | |
tree | c0f889c4d572ffde55491e7508d3badb32f70d3c /src/mesa/tnl | |
parent | 5e99ad19f5737fff6aaad623a97fc61ef7fcf273 (diff) |
Redo array element checking for vertex array buffers.
Now, compute ctx->Array._MaxElement as the min of enabled array's max element.
Test against ctx->Array._MaxElement in glDrawArrays/Elements.
Note: testing in glArrayElement not done yet.
Only do element checking if ctx->Const.CheckArrayBounds is set.
Diffstat (limited to 'src/mesa/tnl')
-rw-r--r-- | src/mesa/tnl/t_imm_api.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/tnl/t_imm_api.c b/src/mesa/tnl/t_imm_api.c index b4e67d8f025..52c20285cc9 100644 --- a/src/mesa/tnl/t_imm_api.c +++ b/src/mesa/tnl/t_imm_api.c @@ -1129,6 +1129,8 @@ _tnl_EvalPoint2( GLint i, GLint j ) /* Need to use the default array-elt outside begin/end for strict * conformance. + * XXX If ctx->Const.CheckArrayBounds is true, we need to test i against + * ctx->Array._MaxElement */ #define ARRAY_ELT( IM, i ) \ { \ |