diff options
author | Brian Paul <[email protected]> | 2016-10-19 18:21:13 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-10-28 09:25:30 -0700 |
commit | 161db1335b8dd1f3e2a9abbe82d3b8921d2da314 (patch) | |
tree | 6c7050253e071539cf3b0c51e95457c1b30b8e16 /src/mesa | |
parent | 7a4ba9f16e5eb42c2df33376c606427bdfc5b0c4 (diff) |
mesa: code clean-up in _mesa_update_vao_client_arrays()
Init vars where declared, use const qualifiers.
Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/arrayobj.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/mesa/main/arrayobj.c b/src/mesa/main/arrayobj.c index aa425b86567..a54889bbe1a 100644 --- a/src/mesa/main/arrayobj.c +++ b/src/mesa/main/arrayobj.c @@ -351,14 +351,11 @@ _mesa_update_vao_client_arrays(struct gl_context *ctx, while (arrays) { const int attrib = u_bit_scan64(&arrays); - - struct gl_client_array *client_array; - struct gl_array_attributes *attrib_array; - struct gl_vertex_buffer_binding *buffer_binding; - - attrib_array = &vao->VertexAttrib[attrib]; - buffer_binding = &vao->BufferBinding[attrib_array->BufferBindingIndex]; - client_array = &vao->_VertexAttrib[attrib]; + struct gl_client_array *client_array = &vao->_VertexAttrib[attrib]; + const struct gl_array_attributes *attrib_array = + &vao->VertexAttrib[attrib]; + const struct gl_vertex_buffer_binding *buffer_binding = + &vao->BufferBinding[attrib_array->BufferBindingIndex]; _mesa_update_client_array(ctx, client_array, attrib_array, buffer_binding); |