summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-01-11 20:23:07 -0700
committerBrian Paul <[email protected]>2012-01-11 20:23:12 -0700
commit90d654b09d98fc597ca273c65c2b1b00a9c35f09 (patch)
treeb089f259e34138d1644d629aadb9ac295519ba31 /src
parentbbc74ffad6551272a4551f8dd9de5b34916c0ac2 (diff)
vbo: fix breakage from previous commit
Don't know how that slipped by.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/vbo/vbo_exec_array.c2
1 files changed, 1 insertions, 1 deletions
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);
}