mesa: Compute gl_client_array->_MaxElement during array validation

Used to be done in the glVertex/Normal/Color/etc/Pointer() calls but
if the VBO was reallocated the size could change.
New _NEW_BUFFER_OBJECT state flag.
This commit is contained in:
Brian Paul
2009-05-06 15:17:25 -06:00
parent 800b14cd37
commit b9d0f947f2
4 changed files with 64 additions and 40 deletions

View File

@@ -958,6 +958,8 @@ _mesa_BufferDataARB(GLenum target, GLsizeiptrARB size,
bufObj->Pointer = NULL;
}
FLUSH_VERTICES(ctx, _NEW_BUFFER_OBJECT);
ASSERT(ctx->Driver.BufferData);
/* Give the buffer object to the driver! <data> may be null! */