summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2003-09-17 03:46:34 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2003-09-17 03:46:34 +0000
commit5543901b96660b467549b09265bd9ff35aff4af5 (patch)
tree232cfa6076ae89dd5702dbfc87f2a77dec676064
parent84351999ec6ad07e0cfc31c0b3a8c86da4134bfe (diff)
new casts
-rw-r--r--src/mesa/tnl/t_imm_eval.c2
-rw-r--r--src/mesa/tnl/t_imm_fixup.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/tnl/t_imm_eval.c b/src/mesa/tnl/t_imm_eval.c
index ee906fc306..8411d7da47 100644
--- a/src/mesa/tnl/t_imm_eval.c
+++ b/src/mesa/tnl/t_imm_eval.c
@@ -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;
diff --git a/src/mesa/tnl/t_imm_fixup.c b/src/mesa/tnl/t_imm_fixup.c
index 5f821e7343..a11fec80b7 100644
--- a/src/mesa/tnl/t_imm_fixup.c
+++ b/src/mesa/tnl/t_imm_fixup.c
@@ -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;