summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/arrayobj.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2018-02-05 09:33:58 -0700
committerBrian Paul <[email protected]>2018-02-06 15:36:47 -0700
commite7a4536e648b37f10a4501f9d295be70b8900269 (patch)
treee8e1ce0de33703af64a20db84790eaa43a31dd91 /src/mesa/main/arrayobj.c
parentd9ab39ea6531028e0558356c8ccf530719fcd2b1 (diff)
mesa: rename gl_vertex_array_object::_VertexAttrib -> _VertexArray
Since the type is gl_vertex_array. Update comment to explain that these arrays are only used by the VBO module. Also rename some local variables in _mesa_update_vao_derived_arrays(). Reviewed-by: Mathias Fröhlich <[email protected]>
Diffstat (limited to 'src/mesa/main/arrayobj.c')
-rw-r--r--src/mesa/main/arrayobj.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mesa/main/arrayobj.c b/src/mesa/main/arrayobj.c
index 360d097ec1d..a6fa33c82c8 100644
--- a/src/mesa/main/arrayobj.c
+++ b/src/mesa/main/arrayobj.c
@@ -283,8 +283,8 @@ unbind_array_object_vbos(struct gl_context *ctx, struct gl_vertex_array_object *
for (i = 0; i < ARRAY_SIZE(obj->BufferBinding); i++)
_mesa_reference_buffer_object(ctx, &obj->BufferBinding[i].BufferObj, NULL);
- for (i = 0; i < ARRAY_SIZE(obj->_VertexAttrib); i++)
- _mesa_reference_buffer_object(ctx, &obj->_VertexAttrib[i].BufferObj, NULL);
+ for (i = 0; i < ARRAY_SIZE(obj->_VertexArray); i++)
+ _mesa_reference_buffer_object(ctx, &obj->_VertexArray[i].BufferObj, NULL);
}
@@ -453,14 +453,13 @@ _mesa_update_vao_derived_arrays(struct gl_context *ctx,
while (arrays) {
const int attrib = u_bit_scan(&arrays);
- struct gl_vertex_array *client_array = &vao->_VertexAttrib[attrib];
- const struct gl_array_attributes *attrib_array =
+ struct gl_vertex_array *array = &vao->_VertexArray[attrib];
+ const struct gl_array_attributes *attribs =
&vao->VertexAttrib[attrib];
const struct gl_vertex_buffer_binding *buffer_binding =
- &vao->BufferBinding[attrib_array->BufferBindingIndex];
+ &vao->BufferBinding[attribs->BufferBindingIndex];
- _mesa_update_vertex_array(ctx, client_array, attrib_array,
- buffer_binding);
+ _mesa_update_vertex_array(ctx, array, attribs, buffer_binding);
}
}