Signed-off-by: Samuel Pitoiset <samuel.pitoi...@gmail.com> --- src/mapi/glapi/gen/gl_API.xml | 2 +- src/mesa/main/texobj.c | 8 ++++++++ src/mesa/main/texobj.h | 3 +++ 3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml index 4d0211a33c..60505e57b9 100644 --- a/src/mapi/glapi/gen/gl_API.xml +++ b/src/mapi/glapi/gen/gl_API.xml @@ -3339,7 +3339,7 @@ <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"/> diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index 494ea25f80..b703da01be 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -1505,6 +1505,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) { GET_CURRENT_CONTEXT(ctx); diff --git a/src/mesa/main/texobj.h b/src/mesa/main/texobj.h index 6443a56705..71cc8ffba2 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 ); -- 2.13.3 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev