Mesa (master): mesa: new _mesa_bufferobj_mapped() helper function
Brian Paul
brianp at kemper.freedesktop.org
Fri Aug 7 15:52:20 UTC 2009
Module: Mesa
Branch: master
Commit: 67153a4518ad23e31205a44119b1d63951ff1fb9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=67153a4518ad23e31205a44119b1d63951ff1fb9
Author: Brian Paul <brianp at vmware.com>
Date: Fri Aug 7 09:40:02 2009 -0600
mesa: new _mesa_bufferobj_mapped() helper function
---
src/mesa/main/bufferobj.h | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/mesa/main/bufferobj.h b/src/mesa/main/bufferobj.h
index ef59ff8..3678fba 100644
--- a/src/mesa/main/bufferobj.h
+++ b/src/mesa/main/bufferobj.h
@@ -36,6 +36,14 @@
* Internal functions
*/
+
+/** Is the given buffer object currently mapped? */
+static INLINE GLboolean
+_mesa_bufferobj_mapped(struct gl_buffer_object *obj)
+{
+ return obj->Pointer != NULL;
+}
+
extern void
_mesa_init_buffer_objects( GLcontext *ctx );
More information about the mesa-commit
mailing list