From 5da83140dfdb1c6109f061ec28ba5f0e705dd09e Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 31 May 2017 12:39:44 +0200 Subject: [PATCH] mesa: add KHR_no_error support for glVertexArrayVertexBuffers() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- src/mapi/glapi/gen/ARB_direct_state_access.xml | 2 +- src/mesa/main/varray.c | 15 +++++++++++++++ src/mesa/main/varray.h | 6 ++++++ 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/src/mapi/glapi/gen/ARB_direct_state_access.xml b/src/mapi/glapi/gen/ARB_direct_state_access.xml index f13a1444a95..cb24d7981cb 100644 --- a/src/mapi/glapi/gen/ARB_direct_state_access.xml +++ b/src/mapi/glapi/gen/ARB_direct_state_access.xml @@ -607,7 +607,7 @@ - + diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index c2c771c173c..0cc8b56c641 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -2272,6 +2272,21 @@ _mesa_BindVertexBuffers(GLuint first, GLsizei count, const GLuint *buffers, } +void GLAPIENTRY +_mesa_VertexArrayVertexBuffers_no_error(GLuint vaobj, GLuint first, + GLsizei count, const GLuint *buffers, + const GLintptr *offsets, + const GLsizei *strides) +{ + GET_CURRENT_CONTEXT(ctx); + + struct gl_vertex_array_object *vao = _mesa_lookup_vao(ctx, vaobj); + vertex_array_vertex_buffers(ctx, vao, first, count, + buffers, offsets, strides, true, + "glVertexArrayVertexBuffers"); +} + + void GLAPIENTRY _mesa_VertexArrayVertexBuffers(GLuint vaobj, GLuint first, GLsizei count, const GLuint *buffers, diff --git a/src/mesa/main/varray.h b/src/mesa/main/varray.h index 24e37a9bf7e..90ca8483cab 100644 --- a/src/mesa/main/varray.h +++ b/src/mesa/main/varray.h @@ -379,6 +379,12 @@ extern void GLAPIENTRY _mesa_BindVertexBuffers(GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides); +void GLAPIENTRY +_mesa_VertexArrayVertexBuffers_no_error(GLuint vaobj, GLuint first, + GLsizei count, const GLuint *buffers, + const GLintptr *offsets, + const GLsizei *strides); + extern void GLAPIENTRY _mesa_VertexArrayVertexBuffers(GLuint vaobj, GLuint first, GLsizei count, const GLuint *buffers, -- 2.30.2