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:
@@ -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! */
|
||||
|
Reference in New Issue
Block a user