summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/indices/u_primconvert.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/auxiliary/indices/u_primconvert.c')
-rw-r--r--src/gallium/auxiliary/indices/u_primconvert.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/indices/u_primconvert.c b/src/gallium/auxiliary/indices/u_primconvert.c
index 46327819006..eba1f9e4b30 100644
--- a/src/gallium/auxiliary/indices/u_primconvert.c
+++ b/src/gallium/auxiliary/indices/u_primconvert.c
@@ -137,8 +137,9 @@ util_primconvert_draw_vbo(struct primconvert_context *pc,
src = ib->user_buffer;
if (!src) {
src = pipe_buffer_map(pc->pipe, ib->buffer,
- PIPE_TRANSFER_READ, &src_transfer) + ib->offset;
+ PIPE_TRANSFER_READ, &src_transfer);
}
+ src = (const uint8_t *)src + ib->offset;
}
else {
u_index_generator(pc->primtypes_mask,