[Mesa-dev] [PATCH 027/101] mesa: add KHR_no_error support to glVertexBindingDivisor()

Samuel Pitoiset samuel.pitoiset at gmail.com
Fri Jul 21 17:39:36 UTC 2017


Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 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 d1f8db90a1..9dc57f4612 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 @@
         <param name="bindingindex" type="GLuint"/>
     </function>
 
-    <function name="VertexBindingDivisor" es2="3.1">
+    <function name="VertexBindingDivisor" es2="3.1" no_error="true">
         <param name="attribindex" type="GLuint"/>
         <param name="divisor" type="GLuint"/>
     </function>
diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c
index c67396d7e7..9cc995ea55 100644
--- a/src/mesa/main/varray.c
+++ b/src/mesa/main/varray.c
@@ -2712,6 +2712,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)
 {
    GET_CURRENT_CONTEXT(ctx);
diff --git a/src/mesa/main/varray.h b/src/mesa/main/varray.h
index ca49042653..4db9eee0e5 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.13.3



More information about the mesa-dev mailing list