mesa: add KHR_no_error to glDeleteVertexArrays()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 18 Jul 2017 16:18:59 +0000 (18:18 +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 c703477576f0daba1202cc1eb64c546bb93b47aa..befa4c91c635060aab3ca37677bb15c2b8549ba3 100644 (file)
@@ -15,7 +15,7 @@
         <param name="array" type="GLuint"/>
     </function>
 
-    <function name="DeleteVertexArrays" es2="3.0">
+    <function name="DeleteVertexArrays" es2="3.0" no_error="true">
         <param name="n" type="GLsizei"/>
         <param name="arrays" type="const GLuint *" count="n"/>
     </function>
index 2c95b001a25270a4d8218538414467f9e7e58c94..29dd93b1c7c5f8a7226f4bb929ce5c129e036b41 100644 (file)
@@ -499,6 +499,14 @@ delete_vertex_arrays(struct gl_context *ctx, GLsizei n, const GLuint *ids)
 }
 
 
+void GLAPIENTRY
+_mesa_DeleteVertexArrays_no_error(GLsizei n, const GLuint *ids)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   delete_vertex_arrays(ctx, n, ids);
+}
+
+
 void GLAPIENTRY
 _mesa_DeleteVertexArrays(GLsizei n, const GLuint *ids)
 {
index 5d7fb0a087c3b0efcf3c1fa594627fa4f594fa94..691475fb2fd021a064b2860e1356414f21a6b59d 100644 (file)
@@ -99,6 +99,9 @@ _mesa_BindVertexArray_no_error(GLuint id);
 
 void GLAPIENTRY _mesa_BindVertexArray( GLuint id );
 
+void GLAPIENTRY
+_mesa_DeleteVertexArrays_no_error(GLsizei n, const GLuint *ids);
+
 void GLAPIENTRY _mesa_DeleteVertexArrays(GLsizei n, const GLuint *ids);
 
 void GLAPIENTRY