summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_render.c
diff options
context:
space:
mode:
authorChia-I Wu <olv@lunarg.com>2010-07-29 15:54:10 +0800
committerChia-I Wu <olv@lunarg.com>2010-07-29 15:55:14 +0800
commit92f9b05499de9f0e8eda11d1a75ba7955c9cc602 (patch)
treeeadac03fd0c5f379a0b1997b8e5bf48e1e5ed9a2 /src/gallium/drivers/r300/r300_render.c
parent2bff1a08d911e8a39661bb65a8ffd684b8782f5b (diff)
gallium: Avoid void pointer arithmetic.
This fixes fdo bug #29286.
Diffstat (limited to 'src/gallium/drivers/r300/r300_render.c')
-rw-r--r--src/gallium/drivers/r300/r300_render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_render.c b/src/gallium/drivers/r300/r300_render.c
index c179b07e86..35d7756584 100644
--- a/src/gallium/drivers/r300/r300_render.c
+++ b/src/gallium/drivers/r300/r300_render.c
@@ -692,7 +692,7 @@ static void r300_swtcl_draw_vbo(struct pipe_context* pipe,
indices = pipe_buffer_map(pipe, r300->index_buffer.buffer,
PIPE_TRANSFER_READ, &ib_transfer);
if (indices)
- indices += r300->index_buffer.offset;
+ indices = (void *) ((char *) indices + r300->index_buffer.offset);
}
draw_set_mapped_element_buffer_range(r300->draw, (indices) ?