vbo: fix void * arithmetic warning
authorKeith Whitwell <keithw@vmware.com>
Wed, 3 Feb 2010 11:52:14 +0000 (11:52 +0000)
committerKeith Whitwell <keithw@vmware.com>
Wed, 3 Feb 2010 11:52:14 +0000 (11:52 +0000)
src/mesa/vbo/vbo_split_inplace.c

index 2a671a5850e57a2d1bcad765056948421dc4a6a0..2fc866c577306fc77797a3713b8fa2b858e48a61 100644 (file)
@@ -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++)