From: Samuel Pitoiset Date: Wed, 19 Jul 2017 09:57:22 +0000 (+0200) Subject: mesa: add KHR_no_error support to glDeleteTextures() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ad427f54aa8881e206bbe504c2fa20a6f95c3dc8;p=mesa.git mesa: add KHR_no_error support to glDeleteTextures() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml index 4d0211a33c7..60505e57b9f 100644 --- a/src/mapi/glapi/gen/gl_API.xml +++ b/src/mapi/glapi/gen/gl_API.xml @@ -3339,7 +3339,7 @@ - + diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index 494ea25f803..b703da01bef 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -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) { diff --git a/src/mesa/main/texobj.h b/src/mesa/main/texobj.h index 6443a567051..71cc8ffba2e 100644 --- a/src/mesa/main/texobj.h +++ b/src/mesa/main/texobj.h @@ -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 );