summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gallium/auxiliary/indices/u_primconvert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/indices/u_primconvert.c b/src/gallium/auxiliary/indices/u_primconvert.c
index 539ca538cc1..46327819006 100644
--- a/src/gallium/auxiliary/indices/u_primconvert.c
+++ b/src/gallium/auxiliary/indices/u_primconvert.c
@@ -137,7 +137,7 @@ 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);
+ PIPE_TRANSFER_READ, &src_transfer) + ib->offset;
}
}
else {