mesa: new _mesa_bufferobj_mapped() helper function
authorBrian Paul <brianp@vmware.com>
Fri, 7 Aug 2009 15:40:02 +0000 (09:40 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 7 Aug 2009 15:50:38 +0000 (09:50 -0600)
src/mesa/main/bufferobj.h

index ef59ff83c84eadf6f58e551ad154eb8fc7151c4b..3678fba435eaf44825bc15636e2fce5dd320f4ec 100644 (file)
  * 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 );