summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-08-07 09:40:02 -0600
committerBrian Paul <[email protected]>2009-08-07 09:50:38 -0600
commit67153a4518ad23e31205a44119b1d63951ff1fb9 (patch)
tree6dcd8f21db990ff5b03ae070dec438348d8915b8 /src
parentf738b913e6b3aa4e3e9bea41d37e634c6952536f (diff)
mesa: new _mesa_bufferobj_mapped() helper function
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/bufferobj.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/main/bufferobj.h b/src/mesa/main/bufferobj.h
index ef59ff83c84..3678fba435e 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 );