mesa: Compute gl_client_array->_MaxElement during array validation
authorBrian Paul <brianp@vmware.com>
Wed, 6 May 2009 21:17:25 +0000 (15:17 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 7 May 2009 16:12:33 +0000 (10:12 -0600)
commitb9d0f947f2bcc47047b162e3d7c8f91b6153e02c
tree44ece271963c4792f87d690da436a6555ea32463
parent800b14cd378ed708a29230d92031ac7b6ad6a286
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.
src/mesa/main/bufferobj.c
src/mesa/main/mtypes.h
src/mesa/main/state.c
src/mesa/main/varray.c