mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 05:40:13 +01:00
vbo: fix breakage from previous commit
Don't know how that slipped by.
This commit is contained in:
parent
bbc74ffad6
commit
90d654b09d
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue