From c5b1e81de48de5d8830bf5d92ff767ad1985e46e Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 22 Oct 2003 22:59:07 +0000 Subject: Initial work for bounds checking of vertex arrays and vertex buffer objects. Only glDrawArrays() done so far. Simplified glVertex/Color/etcPointer functions. Misc casts added here and there. --- src/mesa/main/mtypes.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/mesa/main/mtypes.h') diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 2b51a4168a..2692cbb7e3 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -1289,13 +1289,15 @@ struct gl_client_array { GLenum Type; GLsizei Stride; /**< user-specified stride */ GLsizei StrideB; /**< actual stride in bytes */ - GLubyte *Ptr; - GLuint Flags; + const GLubyte *Ptr; GLuint Enabled; /**< one of the _NEW_ARRAY_ bits */ GLboolean Normalized; /**< GL_ARB_vertex_program */ /**< GL_ARB_vertex_buffer_object */ struct gl_buffer_object *BufferObj; + GLuint _MaxElement; + + GLuint Flags; }; -- cgit v1.2.3