diff options
author | Brian Paul <[email protected]> | 2009-08-07 09:40:02 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-08-07 09:50:38 -0600 |
commit | 67153a4518ad23e31205a44119b1d63951ff1fb9 (patch) | |
tree | 6dcd8f21db990ff5b03ae070dec438348d8915b8 /src | |
parent | f738b913e6b3aa4e3e9bea41d37e634c6952536f (diff) |
mesa: new _mesa_bufferobj_mapped() helper function
Diffstat (limited to 'src')
-rw-r--r-- | 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 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 ); |