From 64da2aeebc04a98c999e4dac9290999d03c1e3d5 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Wed, 3 Feb 2010 11:52:14 +0000 Subject: [PATCH] vbo: fix void * arithmetic warning --- src/mesa/vbo/vbo_split_inplace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/vbo/vbo_split_inplace.c b/src/mesa/vbo/vbo_split_inplace.c index 2a671a5850e..2fc866c5773 100644 --- 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++) -- 2.30.2