mesa: add const qualifiers to vertex array helper functions
authorBrian Paul <brianp@vmware.com>
Mon, 11 Nov 2013 17:56:09 +0000 (10:56 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 12 Nov 2013 18:05:04 +0000 (11:05 -0700)
Jordan Justen <jordan.l.justen@intel.com>

src/mesa/main/varray.h

index 8a9487c6e6cd40156ac4c0c30de769ae751d8da1..ecfc6b6c9b602606dea4729f1c3da7ce82977500 100644 (file)
@@ -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;