From: Samuel Pitoiset Date: Tue, 18 Jul 2017 13:39:13 +0000 (+0200) Subject: mesa: add KHR_no_error support to glVertexArrayBindingDivisor() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0e69fc92e2bc9cf5e9083378ba536fc87de88221;p=mesa.git mesa: add KHR_no_error support to glVertexArrayBindingDivisor() 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 8e91d801410..4439c5bcbe0 100644 --- a/src/mapi/glapi/gen/ARB_direct_state_access.xml +++ b/src/mapi/glapi/gen/ARB_direct_state_access.xml @@ -647,7 +647,7 @@ - + diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index 9cc995ea55b..db9261f1058 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -2743,6 +2743,17 @@ _mesa_VertexBindingDivisor(GLuint bindingIndex, GLuint divisor) } +void GLAPIENTRY +_mesa_VertexArrayBindingDivisor_no_error(GLuint vaobj, GLuint bindingIndex, + GLuint divisor) +{ + GET_CURRENT_CONTEXT(ctx); + + struct gl_vertex_array_object *vao = _mesa_lookup_vao(ctx, vaobj); + vertex_binding_divisor(ctx, vao, VERT_ATTRIB_GENERIC(bindingIndex), divisor); +} + + void GLAPIENTRY _mesa_VertexArrayBindingDivisor(GLuint vaobj, GLuint bindingIndex, GLuint divisor) diff --git a/src/mesa/main/varray.h b/src/mesa/main/varray.h index 4db9eee0e50..182fb544f69 100644 --- a/src/mesa/main/varray.h +++ b/src/mesa/main/varray.h @@ -458,6 +458,10 @@ _mesa_VertexBindingDivisor_no_error(GLuint bindingIndex, GLuint divisor); extern void GLAPIENTRY _mesa_VertexBindingDivisor(GLuint bindingIndex, GLuint divisor); +void GLAPIENTRY +_mesa_VertexArrayBindingDivisor_no_error(GLuint vaobj, GLuint bindingIndex, + GLuint divisor); + extern void GLAPIENTRY _mesa_VertexArrayBindingDivisor(GLuint vaobj, GLuint bindingIndex, GLuint divisor);