From a466b742415aeefa3e46356c8a0b7547cc52c377 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 18 Jul 2017 15:35:23 +0200 Subject: [PATCH] mesa: add KHR_no_error support to glVertexBindingDivisor() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- src/mapi/glapi/gen/ARB_vertex_attrib_binding.xml | 2 +- src/mesa/main/varray.c | 9 +++++++++ src/mesa/main/varray.h | 3 +++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/mapi/glapi/gen/ARB_vertex_attrib_binding.xml b/src/mapi/glapi/gen/ARB_vertex_attrib_binding.xml index d1f8db90a11..9dc57f4612b 100644 --- a/src/mapi/glapi/gen/ARB_vertex_attrib_binding.xml +++ b/src/mapi/glapi/gen/ARB_vertex_attrib_binding.xml @@ -41,7 +41,7 @@ - + diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index c67396d7e79..9cc995ea55b 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -2711,6 +2711,15 @@ vertex_array_binding_divisor(struct gl_context *ctx, } +void GLAPIENTRY +_mesa_VertexBindingDivisor_no_error(GLuint bindingIndex, GLuint divisor) +{ + GET_CURRENT_CONTEXT(ctx); + vertex_binding_divisor(ctx, ctx->Array.VAO, + VERT_ATTRIB_GENERIC(bindingIndex), divisor); +} + + void GLAPIENTRY _mesa_VertexBindingDivisor(GLuint bindingIndex, GLuint divisor) { diff --git a/src/mesa/main/varray.h b/src/mesa/main/varray.h index ca49042653c..4db9eee0e50 100644 --- a/src/mesa/main/varray.h +++ b/src/mesa/main/varray.h @@ -452,6 +452,9 @@ extern void GLAPIENTRY _mesa_VertexArrayAttribBinding(GLuint vaobj, GLuint attribIndex, GLuint bindingIndex); +void GLAPIENTRY +_mesa_VertexBindingDivisor_no_error(GLuint bindingIndex, GLuint divisor); + extern void GLAPIENTRY _mesa_VertexBindingDivisor(GLuint bindingIndex, GLuint divisor); -- 2.30.2