From: Brian Paul Date: Thu, 12 Jan 2012 03:23:07 +0000 (-0700) Subject: vbo: fix breakage from previous commit X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=90d654b09d98fc597ca273c65c2b1b00a9c35f09;p=mesa.git vbo: fix breakage from previous commit Don't know how that slipped by. --- diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c index 89f032f7bf8..9861b21c986 100644 --- a/src/mesa/vbo/vbo_exec_array.c +++ b/src/mesa/vbo/vbo_exec_array.c @@ -114,7 +114,7 @@ vbo_get_minmax_index(struct gl_context *ctx, indices = (char *) ib->ptr + prim->start * index_size; if (_mesa_is_bufferobj(ib->obj)) { - GLsizeiptr size = MIN2(count * ib_size, index->obj->Size); + GLsizeiptr size = MIN2(count * index_size, ib->obj->Size); indices = ctx->Driver.MapBufferRange(ctx, (GLintptr) indices, size, GL_MAP_READ_BIT, ib->obj); }