From: Samuel Pitoiset Date: Tue, 18 Jul 2017 16:11:26 +0000 (+0200) Subject: mesa: add KHR_no_error to glBindVertexArray() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4b0a33d233469fd646852b7d783d5170113dd629;p=mesa.git mesa: add KHR_no_error to glBindVertexArray() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- diff --git a/src/mapi/glapi/gen/ARB_vertex_array_object.xml b/src/mapi/glapi/gen/ARB_vertex_array_object.xml index 57eaa1d3ffb..c703477576f 100644 --- a/src/mapi/glapi/gen/ARB_vertex_array_object.xml +++ b/src/mapi/glapi/gen/ARB_vertex_array_object.xml @@ -10,7 +10,7 @@ - diff --git a/src/mesa/main/arrayobj.c b/src/mesa/main/arrayobj.c index fcc7990ef0d..77c0206ecfd 100644 --- a/src/mesa/main/arrayobj.c +++ b/src/mesa/main/arrayobj.c @@ -444,6 +444,14 @@ bind_vertex_array(struct gl_context *ctx, GLuint id, bool no_error) } +void GLAPIENTRY +_mesa_BindVertexArray_no_error(GLuint id) +{ + GET_CURRENT_CONTEXT(ctx); + bind_vertex_array(ctx, id, true); +} + + void GLAPIENTRY _mesa_BindVertexArray(GLuint id) { diff --git a/src/mesa/main/arrayobj.h b/src/mesa/main/arrayobj.h index 69ffc9250d9..5d7fb0a087c 100644 --- a/src/mesa/main/arrayobj.h +++ b/src/mesa/main/arrayobj.h @@ -94,6 +94,9 @@ _mesa_all_buffers_are_unmapped(const struct gl_vertex_array_object *vao); */ +void GLAPIENTRY +_mesa_BindVertexArray_no_error(GLuint id); + void GLAPIENTRY _mesa_BindVertexArray( GLuint id ); void GLAPIENTRY _mesa_DeleteVertexArrays(GLsizei n, const GLuint *ids);