diff options
author | Brian Paul <[email protected]> | 2003-10-22 22:59:07 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2003-10-22 22:59:07 +0000 |
commit | c5b1e81de48de5d8830bf5d92ff767ad1985e46e (patch) | |
tree | 169c3c09cdc4e69badfb46540db39439bc2d0ef4 /src/mesa/tnl/t_imm_eval.c | |
parent | 15c37348a5d47ece17ffef38978aa8253363e6ee (diff) |
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.
Diffstat (limited to 'src/mesa/tnl/t_imm_eval.c')
-rw-r--r-- | src/mesa/tnl/t_imm_eval.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/tnl/t_imm_eval.c b/src/mesa/tnl/t_imm_eval.c index 69bbbffce83..f72ada78350 100644 --- a/src/mesa/tnl/t_imm_eval.c +++ b/src/mesa/tnl/t_imm_eval.c @@ -119,7 +119,7 @@ static void eval1_4f_ca( struct gl_client_array *dest, { const GLfloat u1 = map->u1; const GLfloat du = map->du; - GLubyte *destData = ADD_POINTERS(dest->Ptr, dest->BufferObj->Data); + const GLubyte *destData = ADD_POINTERS(dest->Ptr, dest->BufferObj->Data); GLfloat (*to)[4] = (GLfloat (*)[4]) destData; GLuint i; @@ -258,7 +258,7 @@ static void eval2_4f_ca( struct gl_client_array *dest, const GLfloat du = map->du; const GLfloat v1 = map->v1; const GLfloat dv = map->dv; - GLubyte *destData = ADD_POINTERS(dest->Ptr, dest->BufferObj->Data); + const GLubyte *destData = ADD_POINTERS(dest->Ptr, dest->BufferObj->Data); GLfloat (*to)[4] = (GLfloat (*)[4]) destData; GLuint i; @@ -542,7 +542,7 @@ void _tnl_eval_immediate( GLcontext *ctx, struct immediate *IM ) GLuint generated = 0; if (copycount) { - GLubyte *destData = ADD_POINTERS(tmp->Color.Ptr, tmp->Color.BufferObj->Data); + const GLubyte *destData = ADD_POINTERS(tmp->Color.Ptr, tmp->Color.BufferObj->Data); copy_4f_stride( store->Attrib[VERT_ATTRIB_COLOR0] + IM->CopyStart, (GLfloat *) destData, tmp->Color.StrideB, |