From: Samuel Pitoiset Date: Wed, 31 May 2017 10:39:44 +0000 (+0200) Subject: mesa: add KHR_no_error support for glVertexArrayVertexBuffers() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5da83140dfdb1c6109f061ec28ba5f0e705dd09e;p=mesa.git mesa: add KHR_no_error support for glVertexArrayVertexBuffers() 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 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,