mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
new casts
This commit is contained in:
parent
84351999ec
commit
5543901b96
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue