From c231590f8d1e474c2c8e5bcf7a3956903b2b8ccc Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 31 May 2017 14:26:20 +0200 Subject: [PATCH] mesa: add KHR_no_error support for glBindBuffer() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- src/mapi/glapi/gen/gl_API.xml | 2 +- src/mesa/main/bufferobj.c | 10 ++++++++++ src/mesa/main/bufferobj.h | 3 +++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml index df999248c8e..5058c8c7779 100644 --- a/src/mapi/glapi/gen/gl_API.xml +++ b/src/mapi/glapi/gen/gl_API.xml @@ -5037,7 +5037,7 @@ - + diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 9304308eabf..e66a3a56688 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@ -1228,6 +1228,16 @@ _mesa_buffer_unmap_all_mappings(struct gl_context *ctx, /* API Functions */ /**********************************************************************/ +void GLAPIENTRY +_mesa_BindBuffer_no_error(GLenum target, GLuint buffer) +{ + GET_CURRENT_CONTEXT(ctx); + + struct gl_buffer_object **bindTarget = get_buffer_target(ctx, target); + bind_buffer_object(ctx, bindTarget, buffer); +} + + void GLAPIENTRY _mesa_BindBuffer(GLenum target, GLuint buffer) { diff --git a/src/mesa/main/bufferobj.h b/src/mesa/main/bufferobj.h index a8e174dc6b1..44342840a81 100644 --- a/src/mesa/main/bufferobj.h +++ b/src/mesa/main/bufferobj.h @@ -155,6 +155,9 @@ _mesa_ClearBufferSubData_sw(struct gl_context *ctx, /* * API functions */ +void GLAPIENTRY +_mesa_BindBuffer_no_error(GLenum target, GLuint buffer); + void GLAPIENTRY _mesa_BindBuffer(GLenum target, GLuint buffer); -- 2.30.2