diff options
author | Samuel Pitoiset <samuel.pitoiset@gmail.com> | 2017-07-19 13:35:11 +0200 |
---|---|---|
committer | Samuel Pitoiset <samuel.pitoiset@gmail.com> | 2017-07-31 13:53:40 +0200 |
commit | 1dd20033966279aa403f46a07aec64e2e2a56b4a (patch) | |
tree | e158c5ca133e9599941e9cd0142d13436d422020 /src | |
parent | fc039e9ff429437f6b14a2bddee9245d1b8c3a22 (diff) |
mesa: add KHR_no_error support to glDeleteBuffers()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mapi/glapi/gen/gl_API.xml | 2 | ||||
-rw-r--r-- | src/mesa/main/bufferobj.c | 8 | ||||
-rw-r--r-- | src/mesa/main/bufferobj.h | 3 |
3 files changed, 12 insertions, 1 deletions
diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml index 60505e57b9..6f4d02d07d 100644 --- a/src/mapi/glapi/gen/gl_API.xml +++ b/src/mapi/glapi/gen/gl_API.xml @@ -5062,7 +5062,7 @@ <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"/> diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index ff1357df34..b46b81271a 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@ -1613,6 +1613,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) { GET_CURRENT_CONTEXT(ctx); diff --git a/src/mesa/main/bufferobj.h b/src/mesa/main/bufferobj.h index 662ceba8a6..69e8549818 100644 --- a/src/mesa/main/bufferobj.h +++ b/src/mesa/main/bufferobj.h @@ -162,6 +162,9 @@ 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); void GLAPIENTRY |