new casts
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 17 Sep 2003 03:46:34 +0000 (03:46 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 17 Sep 2003 03:46:34 +0000 (03:46 +0000)
src/mesa/tnl/t_imm_eval.c
src/mesa/tnl/t_imm_fixup.c

index ee906fc3069c10f7d2a6ef94fb20321fac0713db..8411d7da470a5cc9391269264a82d945a87d6414 100644 (file)
@@ -546,7 +546,7 @@ void _tnl_eval_immediate( GLcontext *ctx, struct immediate *IM )
                         tmp->Color.StrideB,
                         copycount );
 
-      tmp->Color.Ptr = store->Attrib[VERT_ATTRIB_COLOR0] + IM->CopyStart;
+      tmp->Color.Ptr = (GLubyte *) (store->Attrib[VERT_ATTRIB_COLOR0] + IM->CopyStart);
       tmp->Color.StrideB = 4 * sizeof(GLfloat);
       tmp->Color.Flags = 0;
       tnl->vb.importable_data &= ~VERT_BIT_COLOR0;
index 5f821e7343a88b806c5352c5870b5d0ba60a5e69..a11fec80b7f83b44046915fc153eb93c611a45d6 100644 (file)
@@ -766,7 +766,7 @@ _tnl_upgrade_current_data( GLcontext *ctx, GLuint required, GLuint flags )
       struct gl_client_array *tmp = &tnl->imm_inputs.Color;
       GLuint start = IM->CopyStart;
 
-      tmp->Ptr = IM->Attrib[VERT_ATTRIB_COLOR0] + start;
+      tmp->Ptr = (GLubyte *) (IM->Attrib[VERT_ATTRIB_COLOR0] + start);
       tmp->StrideB = 4 * sizeof(GLfloat);
       tmp->Flags = 0;