From: Brian Paul Date: Fri, 7 Aug 2009 15:40:02 +0000 (-0600) Subject: mesa: new _mesa_bufferobj_mapped() helper function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=67153a4518ad23e31205a44119b1d63951ff1fb9;p=mesa.git mesa: new _mesa_bufferobj_mapped() helper function --- 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 );