Module: Mesa Branch: master Commit: 67153a4518ad23e31205a44119b1d63951ff1fb9 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=67153a4518ad23e31205a44119b1d63951ff1fb9
Author: Brian Paul <[email protected]> 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 ); _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
