From: Brian Paul Date: Wed, 12 Aug 2009 21:43:50 +0000 (-0600) Subject: mesa: const qualifiers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f95b82b4861c14e01ec6af81a8de65c2143952b2;p=mesa.git mesa: const qualifiers --- diff --git a/src/mesa/main/bufferobj.h b/src/mesa/main/bufferobj.h index c68291ab919..decb44a65e6 100644 --- a/src/mesa/main/bufferobj.h +++ b/src/mesa/main/bufferobj.h @@ -39,7 +39,7 @@ /** Is the given buffer object currently mapped? */ static INLINE GLboolean -_mesa_bufferobj_mapped(struct gl_buffer_object *obj) +_mesa_bufferobj_mapped(const struct gl_buffer_object *obj) { return obj->Pointer != NULL; } @@ -50,7 +50,7 @@ _mesa_bufferobj_mapped(struct gl_buffer_object *obj) * always have Name==0. User created buffers have Name!=0. */ static INLINE GLboolean -_mesa_is_bufferobj(struct gl_buffer_object *obj) +_mesa_is_bufferobj(const struct gl_buffer_object *obj) { return obj->Name != 0; }