mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 00:00:12 +01:00
tnl: fix regression in bind_indices()
Commit 2ea1ff3816 caused the regression.
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=40413
This commit is contained in:
parent
788d9bf121
commit
5d9e242c3e
1 changed files with 2 additions and 1 deletions
|
|
@ -372,7 +372,8 @@ static void bind_indices( struct gl_context *ctx,
|
|||
GL_MAP_READ_BIT, ib->obj);
|
||||
assert(ib->obj->Pointer);
|
||||
} else {
|
||||
ptr = ib->ptr;
|
||||
/* user-space elements, or buffer already mapped */
|
||||
ptr = ADD_POINTERS(ib->obj->Pointer, ib->ptr);
|
||||
}
|
||||
|
||||
if (ib->type == GL_UNSIGNED_INT && VB->Primitive[0].basevertex == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue