summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/bufferobj.h
diff options
context:
space:
mode:
authorLaura Ekstrand <laura@jlekstrand.net>2015-01-09 16:16:48 -0800
committerLaura Ekstrand <laura@jlekstrand.net>2015-03-09 13:33:53 -0700
commit768ca8b83e45b1d23c0d3af0b79cc19c1b3b6988 (patch)
tree5c633798108c29a285f7228a4ccc5f3269e850cd /src/mesa/main/bufferobj.h
parentff011340a499d9fe5c3ead6b46b917578bfeb533 (diff)
downloadexternal_mesa3d-768ca8b83e45b1d23c0d3af0b79cc19c1b3b6988.zip
external_mesa3d-768ca8b83e45b1d23c0d3af0b79cc19c1b3b6988.tar.gz
external_mesa3d-768ca8b83e45b1d23c0d3af0b79cc19c1b3b6988.tar.bz2
main: Add utility function _mesa_lookup_bufferobj_err.
This function is exposed to mesa driver internals so that texture buffer objects and array objects can use it. Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Diffstat (limited to 'src/mesa/main/bufferobj.h')
-rw-r--r--src/mesa/main/bufferobj.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/bufferobj.h b/src/mesa/main/bufferobj.h
index fe294fc..8e53bfd 100644
--- a/src/mesa/main/bufferobj.h
+++ b/src/mesa/main/bufferobj.h
@@ -89,6 +89,10 @@ _mesa_lookup_bufferobj(struct gl_context *ctx, GLuint buffer);
extern struct gl_buffer_object *
_mesa_lookup_bufferobj_locked(struct gl_context *ctx, GLuint buffer);
+extern struct gl_buffer_object *
+_mesa_lookup_bufferobj_err(struct gl_context *ctx, GLuint buffer,
+ const char *caller);
+
extern void
_mesa_begin_bufferobj_lookups(struct gl_context *ctx);