Signed-off-by: Samuel Pitoiset <samuel.pitoi...@gmail.com> --- src/mapi/glapi/gen/ARB_multi_bind.xml | 2 +- src/mesa/main/varray.c | 13 +++++++++++++ src/mesa/main/varray.h | 5 +++++ 3 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/src/mapi/glapi/gen/ARB_multi_bind.xml b/src/mapi/glapi/gen/ARB_multi_bind.xml index d58c2708cb..601680f30b 100644 --- a/src/mapi/glapi/gen/ARB_multi_bind.xml +++ b/src/mapi/glapi/gen/ARB_multi_bind.xml @@ -41,7 +41,7 @@ <param name="textures" type="const GLuint *"/> </function> - <function name="BindVertexBuffers"> + <function name="BindVertexBuffers" no_error="true"> <param name="first" type="GLuint"/> <param name="count" type="GLsizei"/> <param name="buffers" type="const GLuint *"/> diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index 0cc8b56c64..a08b11fcf8 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -2249,6 +2249,19 @@ vertex_array_vertex_buffers_err(struct gl_context *ctx, void GLAPIENTRY +_mesa_BindVertexBuffers_no_error(GLuint first, GLsizei count, + const GLuint *buffers, const GLintptr *offsets, + const GLsizei *strides) +{ + GET_CURRENT_CONTEXT(ctx); + + vertex_array_vertex_buffers(ctx, ctx->Array.VAO, first, count, + buffers, offsets, strides, true, + "glBindVertexBuffers"); +} + + +void GLAPIENTRY _mesa_BindVertexBuffers(GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides) { diff --git a/src/mesa/main/varray.h b/src/mesa/main/varray.h index 90ca8483ca..43b9fe905e 100644 --- a/src/mesa/main/varray.h +++ b/src/mesa/main/varray.h @@ -375,6 +375,11 @@ extern void GLAPIENTRY _mesa_VertexArrayVertexBuffer(GLuint vaobj, GLuint bindingIndex, GLuint buffer, GLintptr offset, GLsizei stride); +void GLAPIENTRY +_mesa_BindVertexBuffers_no_error(GLuint first, GLsizei count, + const GLuint *buffers, const GLintptr *offsets, + const GLsizei *strides); + extern void GLAPIENTRY _mesa_BindVertexBuffers(GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides); -- 2.13.0 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev