mesa: const-qualify buffer_object_subdata_range_good() bufObj parameter
authorBrian Paul <brianp@vmware.com>
Thu, 17 Sep 2015 15:45:42 +0000 (09:45 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 22 Sep 2015 16:15:30 +0000 (10:15 -0600)
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/main/bufferobj.c

index 23da83e8b80f35a1a1a314bc5ecbe7bfccff12a8..f87cea9755703809b29c59efc2d994287648da8a 100644 (file)
@@ -246,7 +246,7 @@ bufferobj_range_mapped(const struct gl_buffer_object *obj,
  */
 static bool
 buffer_object_subdata_range_good(struct gl_context *ctx,
-                                 struct gl_buffer_object *bufObj,
+                                 const struct gl_buffer_object *bufObj,
                                  GLintptr offset, GLsizeiptr size,
                                  bool mappedRange, const char *caller)
 {