diff options
author | Brian Paul <[email protected]> | 2009-05-14 13:24:24 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-05-21 09:17:08 -0600 |
commit | a185bcbdec856cc98c26098e4e447a683eed14d1 (patch) | |
tree | a880480e42ef18799b9f1bcee3ef00d26e5dc864 /src/mesa/vbo | |
parent | 899c524a49fe5dc7413656380ebd65bbd061c042 (diff) |
mesa: move gl_array_attrib::_MaxElement to gl_array_object::_MaxElement
This value is per array object.
Diffstat (limited to 'src/mesa/vbo')
-rw-r--r-- | src/mesa/vbo/vbo_exec_array.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c index fdb501815d8..a4c67c1de15 100644 --- a/src/mesa/vbo/vbo_exec_array.c +++ b/src/mesa/vbo/vbo_exec_array.c @@ -352,10 +352,11 @@ vbo_exec_DrawRangeElements(GLenum mode, if (!_mesa_validate_DrawRangeElements( ctx, mode, start, end, count, type, indices )) return; - if (end >= ctx->Array._MaxElement) { + if (end >= ctx->Array.ArrayObj->_MaxElement) { /* the max element is out of bounds of one or more enabled arrays */ _mesa_warning(ctx, "glDraw[Range]Elements() index=%u is " - "out of bounds (max=%u)", end, ctx->Array._MaxElement); + "out of bounds (max=%u)", end, + ctx->Array.ArrayObj->_MaxElement); return; } |