diff options
author | Brian Paul <[email protected]> | 2013-11-11 10:56:09 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-11-12 11:05:04 -0700 |
commit | e032abcb2716e3ee676b5a44079d4bbb95c466f9 (patch) | |
tree | e7efe58babb48c7d016ede83b90739556ba02c2a /src | |
parent | 08122e151a511236bccf7ab94efa4278ea3b3b6c (diff) |
mesa: add const qualifiers to vertex array helper functions
Jordan Justen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/varray.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/main/varray.h b/src/mesa/main/varray.h index 8a9487c6e6c..ecfc6b6c9b6 100644 --- a/src/mesa/main/varray.h +++ b/src/mesa/main/varray.h @@ -73,8 +73,8 @@ _mesa_update_array_max_element(struct gl_client_array *array) * a vertex buffer. */ static inline const GLubyte * -_mesa_vertex_attrib_address(struct gl_vertex_attrib_array *array, - struct gl_vertex_buffer_binding *binding) +_mesa_vertex_attrib_address(const struct gl_vertex_attrib_array *array, + const struct gl_vertex_buffer_binding *binding) { return (binding->BufferObj->Name == 0 ? array->Ptr : @@ -88,8 +88,8 @@ _mesa_vertex_attrib_address(struct gl_vertex_attrib_array *array, static inline void _mesa_update_client_array(struct gl_context *ctx, struct gl_client_array *dst, - struct gl_vertex_attrib_array *src, - struct gl_vertex_buffer_binding *binding) + const struct gl_vertex_attrib_array *src, + const struct gl_vertex_buffer_binding *binding) { dst->Size = src->Size; dst->Type = src->Type; |