Mesa (master): mesa: const qualifiers
Brian Paul
brianp at kemper.freedesktop.org
Wed Aug 12 23:31:58 UTC 2009
Module: Mesa
Branch: master
Commit: f95b82b4861c14e01ec6af81a8de65c2143952b2
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f95b82b4861c14e01ec6af81a8de65c2143952b2
Author: Brian Paul <brianp at vmware.com>
Date: Wed Aug 12 15:43:50 2009 -0600
mesa: const qualifiers
---
src/mesa/main/bufferobj.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mesa/main/bufferobj.h b/src/mesa/main/bufferobj.h
index c68291a..decb44a 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;
}
More information about the mesa-commit
mailing list