mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
vbo: fix void * arithmetic warning
This commit is contained in:
parent
db0eb3a437
commit
64da2aeebc
1 changed files with 2 additions and 1 deletions
|
|
@ -72,7 +72,8 @@ static void flush_vertex( struct split_context *split )
|
|||
ib = *split->ib;
|
||||
|
||||
ib.count = split->max_index - split->min_index + 1;
|
||||
ib.ptr += split->min_index * _mesa_sizeof_type(ib.type);
|
||||
ib.ptr = (const void *)((const char *)ib.ptr +
|
||||
split->min_index * _mesa_sizeof_type(ib.type));
|
||||
|
||||
/* Rebase the primitives to save index buffer entries. */
|
||||
for (i = 0; i < split->dstprim_nr; i++)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue