From: Samuel Pitoiset Date: Tue, 18 Jul 2017 13:21:22 +0000 (+0200) Subject: mesa: add KHR_no_error support to gl{Create,Gen}VertexArrays() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6f4741e32ed66a2f0df4a03e9a874f08ab666412;p=mesa.git mesa: add KHR_no_error support to gl{Create,Gen}VertexArrays() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- diff --git a/src/mapi/glapi/gen/ARB_direct_state_access.xml b/src/mapi/glapi/gen/ARB_direct_state_access.xml index f1ae6e97902..8e91d801410 100644 --- a/src/mapi/glapi/gen/ARB_direct_state_access.xml +++ b/src/mapi/glapi/gen/ARB_direct_state_access.xml @@ -579,7 +579,7 @@ - + diff --git a/src/mapi/glapi/gen/ARB_vertex_array_object.xml b/src/mapi/glapi/gen/ARB_vertex_array_object.xml index 4f21137ab03..57eaa1d3ffb 100644 --- a/src/mapi/glapi/gen/ARB_vertex_array_object.xml +++ b/src/mapi/glapi/gen/ARB_vertex_array_object.xml @@ -20,7 +20,7 @@ - + diff --git a/src/mesa/main/arrayobj.c b/src/mesa/main/arrayobj.c index 5b73652bd95..af6a17daeca 100644 --- a/src/mesa/main/arrayobj.c +++ b/src/mesa/main/arrayobj.c @@ -550,6 +550,14 @@ gen_vertex_arrays_err(struct gl_context *ctx, GLsizei n, GLuint *arrays, * ARB version of glGenVertexArrays() * All arrays will be required to live in VBOs. */ +void GLAPIENTRY +_mesa_GenVertexArrays_no_error(GLsizei n, GLuint *arrays) +{ + GET_CURRENT_CONTEXT(ctx); + gen_vertex_arrays(ctx, n, arrays, false, "glGenVertexArrays"); +} + + void GLAPIENTRY _mesa_GenVertexArrays(GLsizei n, GLuint *arrays) { @@ -562,6 +570,14 @@ _mesa_GenVertexArrays(GLsizei n, GLuint *arrays) * ARB_direct_state_access * Generates ID's and creates the array objects. */ +void GLAPIENTRY +_mesa_CreateVertexArrays_no_error(GLsizei n, GLuint *arrays) +{ + GET_CURRENT_CONTEXT(ctx); + gen_vertex_arrays(ctx, n, arrays, true, "glCreateVertexArrays"); +} + + void GLAPIENTRY _mesa_CreateVertexArrays(GLsizei n, GLuint *arrays) { diff --git a/src/mesa/main/arrayobj.h b/src/mesa/main/arrayobj.h index 17949685775..69ffc9250d9 100644 --- a/src/mesa/main/arrayobj.h +++ b/src/mesa/main/arrayobj.h @@ -98,8 +98,14 @@ void GLAPIENTRY _mesa_BindVertexArray( GLuint id ); void GLAPIENTRY _mesa_DeleteVertexArrays(GLsizei n, const GLuint *ids); +void GLAPIENTRY +_mesa_GenVertexArrays_no_error(GLsizei n, GLuint *arrays); + void GLAPIENTRY _mesa_GenVertexArrays(GLsizei n, GLuint *arrays); +void GLAPIENTRY +_mesa_CreateVertexArrays_no_error(GLsizei n, GLuint *arrays); + void GLAPIENTRY _mesa_CreateVertexArrays(GLsizei n, GLuint *arrays); GLboolean GLAPIENTRY _mesa_IsVertexArray( GLuint id );