mesa: add KHR_no_error support to glDeleteTextures()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 19 Jul 2017 09:57:22 +0000 (11:57 +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/gl_API.xml
src/mesa/main/texobj.c
src/mesa/main/texobj.h

index 4d0211a33c75363f44d0cff0624b34061c19b7b0..60505e57b9f60620b63d12798bd4bf1078148e6f 100644 (file)
         <glx rop="4117"/>
     </function>
 
-    <function name="DeleteTextures" es1="1.0" es2="2.0">
+    <function name="DeleteTextures" es1="1.0" es2="2.0" no_error="true">
         <param name="n" type="GLsizei" counter="true"/>
         <param name="textures" type="const GLuint *" count="n"/>
         <glx sop="144"/>
index 494ea25f803eae823a298bddc45f006c83cad2aa..b703da01bef8ad09e7ba066ba79a9dfc3c519fb4 100644 (file)
@@ -1504,6 +1504,14 @@ delete_textures(struct gl_context *ctx, GLsizei n, const GLuint *textures)
 }
 
 
+void GLAPIENTRY
+_mesa_DeleteTextures_no_error(GLsizei n, const GLuint *textures)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   delete_textures(ctx, n, textures);
+}
+
+
 void GLAPIENTRY
 _mesa_DeleteTextures(GLsizei n, const GLuint *textures)
 {
index 6443a567051f7e2b13f60ed95231e18c4eb31b69..71cc8ffba2ef290e4373b9a0fc2161af590d510e 100644 (file)
@@ -189,6 +189,9 @@ _mesa_CreateTextures_no_error(GLenum target, GLsizei n, GLuint *textures);
 extern void GLAPIENTRY
 _mesa_CreateTextures(GLenum target, GLsizei n, GLuint *textures);
 
+void GLAPIENTRY
+_mesa_DeleteTextures_no_error(GLsizei n, const GLuint *textures);
+
 extern void GLAPIENTRY
 _mesa_DeleteTextures( GLsizei n, const GLuint *textures );