mesa: add KHR_no_error support to glVertexBindingDivisor()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 18 Jul 2017 13:35:23 +0000 (15:35 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 31 Jul 2017 11:53:39 +0000 (13:53 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mapi/glapi/gen/ARB_vertex_attrib_binding.xml
src/mesa/main/varray.c
src/mesa/main/varray.h

index d1f8db90a114e15162981b409bc3d323dd325c58..9dc57f4612bb66609f1cf99caac4bfde684c9f13 100644 (file)
@@ -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>
index c67396d7e796e4281c3d53c23e642002059ba2f9..9cc995ea55b34aa86c5c3bbfdc18f8edb7524789 100644 (file)
@@ -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)
 {
index ca49042653c58b4a9b334f98cd5578ced29364ab..4db9eee0e5047ecf8bd3d796d2267886d49bb5d5 100644 (file)
@@ -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);