diff options
author | Brian Paul <[email protected]> | 2009-05-06 13:02:38 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-05-07 10:12:33 -0600 |
commit | 828aa76f360c96adea1725380c397d04690bfd04 (patch) | |
tree | 073c3b52adf4be5eeffce4516d2e87db4482c920 /src/mesa | |
parent | 0077c879b57f663c038becdde37b2f6671f59150 (diff) |
mesa: use array->BufferObj instead of ctx->Array.ArrayBufferObj
No difference, but a little more understandable.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/varray.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index 629be600d4c..527555be0e4 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -73,8 +73,8 @@ update_array(GLcontext *ctx, struct gl_client_array *array, * Later in glDrawArrays we'll check if start + count > _MaxElement to * be sure we won't go out of bounds. */ - if (ctx->Array.ArrayBufferObj->Name) - array->_MaxElement = ((GLsizeiptrARB) ctx->Array.ArrayBufferObj->Size + if (array->BufferObj->Name) + array->_MaxElement = ((GLsizeiptrARB) array->BufferObj->Size - (GLsizeiptrARB) array->Ptr + array->StrideB - elementSize) / array->StrideB; else |