diff options
author | Fredrik Höglund <[email protected]> | 2015-03-02 18:24:36 +0100 |
---|---|---|
committer | Fredrik Höglund <[email protected]> | 2015-05-08 15:31:02 +0200 |
commit | 2830c2fbeb9601c1760a9fffe45cd04f8c635d25 (patch) | |
tree | 2bd944d34a0ff96a07a961b4f9e6791131ed1bc2 /src/mesa/main/arrayobj.h | |
parent | a1f48268b4ee166eb9fde21bceaaef12a6e0c89a (diff) |
mesa: Add _mesa_lookup_vao_err
This is a convenience function that generates GL_INVALID_OPERATION
when the array object doesn't exist.
Reviewed-by: Laura Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa/main/arrayobj.h')
-rw-r--r-- | src/mesa/main/arrayobj.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/arrayobj.h b/src/mesa/main/arrayobj.h index ae671e3afcf..1e7436bfc55 100644 --- a/src/mesa/main/arrayobj.h +++ b/src/mesa/main/arrayobj.h @@ -49,6 +49,9 @@ extern struct gl_vertex_array_object * _mesa_lookup_vao(struct gl_context *ctx, GLuint id); extern struct gl_vertex_array_object * +_mesa_lookup_vao_err(struct gl_context *ctx, GLuint id, const char *caller); + +extern struct gl_vertex_array_object * _mesa_new_vao(struct gl_context *ctx, GLuint name); extern void |