From: Samuel Pitoiset Date: Wed, 19 Jul 2017 13:45:01 +0000 (+0200) Subject: mesa: add KHR_no_error support to glVertexArrayElementBuffer() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d88d60ab1d1992a59c7ed6c97b6d6c6990671067;p=mesa.git mesa: add KHR_no_error support to glVertexArrayElementBuffer() 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 1c62ac6f2e4..7927a4e1f6f 100644 --- a/src/mapi/glapi/gen/ARB_direct_state_access.xml +++ b/src/mapi/glapi/gen/ARB_direct_state_access.xml @@ -594,7 +594,7 @@ - + diff --git a/src/mesa/main/arrayobj.c b/src/mesa/main/arrayobj.c index 89fa473ff87..600177cc5c9 100644 --- a/src/mesa/main/arrayobj.c +++ b/src/mesa/main/arrayobj.c @@ -686,6 +686,14 @@ vertex_array_element_buffer(struct gl_context *ctx, GLuint vaobj, GLuint buffer, } +void GLAPIENTRY +_mesa_VertexArrayElementBuffer_no_error(GLuint vaobj, GLuint buffer) +{ + GET_CURRENT_CONTEXT(ctx); + vertex_array_element_buffer(ctx, vaobj, buffer, true); +} + + void GLAPIENTRY _mesa_VertexArrayElementBuffer(GLuint vaobj, GLuint buffer) { diff --git a/src/mesa/main/arrayobj.h b/src/mesa/main/arrayobj.h index 691475fb2fd..1b9900c6e55 100644 --- a/src/mesa/main/arrayobj.h +++ b/src/mesa/main/arrayobj.h @@ -116,6 +116,9 @@ void GLAPIENTRY _mesa_CreateVertexArrays(GLsizei n, GLuint *arrays); GLboolean GLAPIENTRY _mesa_IsVertexArray( GLuint id ); +void GLAPIENTRY +_mesa_VertexArrayElementBuffer_no_error(GLuint vaobj, GLuint buffer); + void GLAPIENTRY _mesa_VertexArrayElementBuffer(GLuint vaobj, GLuint buffer); void GLAPIENTRY _mesa_GetVertexArrayiv(GLuint vaobj, GLenum pname, GLint *param);