From 1dd20033966279aa403f46a07aec64e2e2a56b4a Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 19 Jul 2017 13:35:11 +0200 Subject: [PATCH] mesa: add KHR_no_error support to glDeleteBuffers() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- src/mapi/glapi/gen/gl_API.xml | 2 +- src/mesa/main/bufferobj.c | 8 ++++++++ src/mesa/main/bufferobj.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 60505e57b9f..6f4d02d07d1 100644 --- a/src/mapi/glapi/gen/gl_API.xml +++ b/src/mapi/glapi/gen/gl_API.xml @@ -5062,7 +5062,7 @@ - + diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index ff1357df341..b46b81271a1 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@ -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) { diff --git a/src/mesa/main/bufferobj.h b/src/mesa/main/bufferobj.h index 662ceba8a6c..69e85498186 100644 --- a/src/mesa/main/bufferobj.h +++ b/src/mesa/main/bufferobj.h @@ -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); -- 2.30.2