mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 06:00:10 +01:00
mesa: Set correct array element in vbo_exec_vtx_init.
I'm not familiar with this code, but this sure appears to be a typo. It looks like the intent is to set each array element, not arrays[0] each time. Notably, the loop just below uses "array", not "arrays". Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Fredrik Höglund <fredrik@kde.org> Reviewed-by: Brian Paul <brianp@vmware.com> Cc: mesa-stable@lists.freedesktop.org
This commit is contained in:
parent
d0ec6e8509
commit
f81052dc9b
1 changed files with 1 additions and 1 deletions
|
|
@ -1067,7 +1067,7 @@ void vbo_exec_vtx_init( struct vbo_exec_context *exec )
|
|||
struct gl_client_array *array;
|
||||
array = &arrays[VERT_ATTRIB_FF(i)];
|
||||
array->BufferObj = NULL;
|
||||
_mesa_reference_buffer_object(ctx, &arrays->BufferObj,
|
||||
_mesa_reference_buffer_object(ctx, &array->BufferObj,
|
||||
vbo->currval[VBO_ATTRIB_POS+i].BufferObj);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue