projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db0eb3a
)
vbo: fix void * arithmetic warning
author
Keith Whitwell
<keithw@vmware.com>
Wed, 3 Feb 2010 11:52:14 +0000
(11:52 +0000)
committer
Keith Whitwell
<keithw@vmware.com>
Wed, 3 Feb 2010 11:52:14 +0000
(11:52 +0000)
src/mesa/vbo/vbo_split_inplace.c
patch
|
blob
|
history
diff --git
a/src/mesa/vbo/vbo_split_inplace.c
b/src/mesa/vbo/vbo_split_inplace.c
index 2a671a5850e57a2d1bcad765056948421dc4a6a0..2fc866c577306fc77797a3713b8fa2b858e48a61 100644
(file)
--- a/
src/mesa/vbo/vbo_split_inplace.c
+++ b/
src/mesa/vbo/vbo_split_inplace.c
@@
-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++)