projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f738b91
)
mesa: new _mesa_bufferobj_mapped() helper function
author
Brian Paul
<brianp@vmware.com>
Fri, 7 Aug 2009 15:40:02 +0000
(09:40 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 7 Aug 2009 15:50:38 +0000
(09:50 -0600)
src/mesa/main/bufferobj.h
patch
|
blob
|
history
diff --git
a/src/mesa/main/bufferobj.h
b/src/mesa/main/bufferobj.h
index ef59ff83c84eadf6f58e551ad154eb8fc7151c4b..3678fba435eaf44825bc15636e2fce5dd320f4ec 100644
(file)
--- 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 );