mesa: add KHR_no_error support for glBindVertexBuffers()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 31 May 2017 10:42:39 +0000 (12:42 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 7 Jun 2017 09:03:47 +0000 (11:03 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mapi/glapi/gen/ARB_multi_bind.xml
src/mesa/main/varray.c
src/mesa/main/varray.h

index d58c2708cb273208edb0aa55a22b6536ede37b66..601680f30bdf3146afc4881914cbfb40c15e66cf 100644 (file)
@@ -41,7 +41,7 @@
         <param name="textures" type="const GLuint *"/>
     </function>
 
-    <function name="BindVertexBuffers">
+    <function name="BindVertexBuffers" no_error="true">
         <param name="first" type="GLuint"/>
         <param name="count" type="GLsizei"/>
         <param name="buffers" type="const GLuint *"/>
index 0cc8b56c641d2eb5eb4acc1f0829a168755eeb70..a08b11fcf8d6d8ce9b9b6e8102994b836ef1b5db 100644 (file)
@@ -2248,6 +2248,19 @@ vertex_array_vertex_buffers_err(struct gl_context *ctx,
 }
 
 
+void GLAPIENTRY
+_mesa_BindVertexBuffers_no_error(GLuint first, GLsizei count,
+                                 const GLuint *buffers, const GLintptr *offsets,
+                                 const GLsizei *strides)
+{
+   GET_CURRENT_CONTEXT(ctx);
+
+   vertex_array_vertex_buffers(ctx, ctx->Array.VAO, first, count,
+                               buffers, offsets, strides, true,
+                               "glBindVertexBuffers");
+}
+
+
 void GLAPIENTRY
 _mesa_BindVertexBuffers(GLuint first, GLsizei count, const GLuint *buffers,
                         const GLintptr *offsets, const GLsizei *strides)
index 90ca8483cab88b9273ba1d31d7d6d28b076f7515..43b9fe905ef27579c7cc7f79955400a561a5f24c 100644 (file)
@@ -375,6 +375,11 @@ extern void GLAPIENTRY
 _mesa_VertexArrayVertexBuffer(GLuint vaobj, GLuint bindingIndex, GLuint buffer,
                               GLintptr offset, GLsizei stride);
 
+void GLAPIENTRY
+_mesa_BindVertexBuffers_no_error(GLuint first, GLsizei count,
+                                 const GLuint *buffers, const GLintptr *offsets,
+                                 const GLsizei *strides);
+
 extern void GLAPIENTRY
 _mesa_BindVertexBuffers(GLuint first, GLsizei count, const GLuint *buffers,
                         const GLintptr *offsets, const GLsizei *strides);