mesa: add KHR_no_error to glBindVertexArray()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 18 Jul 2017 16:11:26 +0000 (18:11 +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_array_object.xml
src/mesa/main/arrayobj.c
src/mesa/main/arrayobj.h

index 57eaa1d3ffb31e00e15ed563df74df71889dd1d6..c703477576f0daba1202cc1eb64c546bb93b47aa 100644 (file)
@@ -10,7 +10,7 @@
 
     <enum name="VERTEX_ARRAY_BINDING" value="0x85B5"/>
 
-    <function name="BindVertexArray" es2="3.0"
+    <function name="BindVertexArray" es2="3.0" no_error="true"
               marshal_fail="_mesa_glthread_is_compat_bind_vertex_array(ctx)">
         <param name="array" type="GLuint"/>
     </function>
index fcc7990ef0d67e3613064de2d66eeab8a3fff113..77c0206ecfdf58409fbdbfa872686ae3b7ac7480 100644 (file)
@@ -444,6 +444,14 @@ bind_vertex_array(struct gl_context *ctx, GLuint id, bool no_error)
 }
 
 
+void GLAPIENTRY
+_mesa_BindVertexArray_no_error(GLuint id)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   bind_vertex_array(ctx, id, true);
+}
+
+
 void GLAPIENTRY
 _mesa_BindVertexArray(GLuint id)
 {
index 69ffc9250d9fcf15a8338a660c1354284e13a315..5d7fb0a087c3b0efcf3c1fa594627fa4f594fa94 100644 (file)
@@ -94,6 +94,9 @@ _mesa_all_buffers_are_unmapped(const struct gl_vertex_array_object *vao);
  */
 
 
+void GLAPIENTRY
+_mesa_BindVertexArray_no_error(GLuint id);
+
 void GLAPIENTRY _mesa_BindVertexArray( GLuint id );
 
 void GLAPIENTRY _mesa_DeleteVertexArrays(GLsizei n, const GLuint *ids);