mesa: add KHR_no_error support to glDeleteBuffers()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 19 Jul 2017 11:35:11 +0000 (13:35 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 31 Jul 2017 11:53:40 +0000 (13:53 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mapi/glapi/gen/gl_API.xml
src/mesa/main/bufferobj.c
src/mesa/main/bufferobj.h

index 60505e57b9f60620b63d12798bd4bf1078148e6f..6f4d02d07d15ff87693245b99b0f601e893740e6 100644 (file)
         <glx ignore="true"/>
     </function>
 
-    <function name="DeleteBuffers" es1="1.1" es2="2.0">
+    <function name="DeleteBuffers" es1="1.1" es2="2.0" no_error="true">
         <param name="n" type="GLsizei" counter="true"/>
         <param name="buffer" type="const GLuint *" count="n"/>
         <glx ignore="true"/>
index ff1357df3417302752ae592c0a05159e85fa6c0b..b46b81271a11c89956ae6d28276148f36b473a6c 100644 (file)
@@ -1612,6 +1612,14 @@ delete_buffers(struct gl_context *ctx, GLsizei n, const GLuint *ids)
 }
 
 
+void GLAPIENTRY
+_mesa_DeleteBuffers_no_error(GLsizei n, const GLuint *ids)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   delete_buffers(ctx, n, ids);
+}
+
+
 void GLAPIENTRY
 _mesa_DeleteBuffers(GLsizei n, const GLuint *ids)
 {
index 662ceba8a6ceec2f7894b97dba77c126d97ca282..69e85498186203446be25b2dcc6f28e48399e193 100644 (file)
@@ -161,6 +161,9 @@ _mesa_BindBuffer_no_error(GLenum target, GLuint buffer);
 void GLAPIENTRY
 _mesa_BindBuffer(GLenum target, GLuint buffer);
 
+void GLAPIENTRY
+_mesa_DeleteBuffers_no_error(GLsizei n, const GLuint * buffer);
+
 void GLAPIENTRY
 _mesa_DeleteBuffers(GLsizei n, const GLuint * buffer);