From: Samuel Pitoiset Date: Fri, 21 Jul 2017 12:28:52 +0000 (+0200) Subject: mesa: add KHR_no_error support to glClearBufferiv() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=da0ecdae1da7912a5ed4a1c018ed270888d5b1d6;p=mesa.git mesa: add KHR_no_error support to glClearBufferiv() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- diff --git a/src/mapi/glapi/gen/GL3x.xml b/src/mapi/glapi/gen/GL3x.xml index 8b895ccb494..8d10f78e824 100644 --- a/src/mapi/glapi/gen/GL3x.xml +++ b/src/mapi/glapi/gen/GL3x.xml @@ -117,7 +117,7 @@ - + diff --git a/src/mesa/main/clear.c b/src/mesa/main/clear.c index ea75a95184e..c5e7f1346b0 100644 --- a/src/mesa/main/clear.c +++ b/src/mesa/main/clear.c @@ -414,6 +414,14 @@ clear_bufferiv(struct gl_context *ctx, GLenum buffer, GLint drawbuffer, } +void GLAPIENTRY +_mesa_ClearBufferiv_no_error(GLenum buffer, GLint drawbuffer, const GLint *value) +{ + GET_CURRENT_CONTEXT(ctx); + clear_bufferiv(ctx, buffer, drawbuffer, value, true); +} + + void GLAPIENTRY _mesa_ClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint *value) { diff --git a/src/mesa/main/clear.h b/src/mesa/main/clear.h index 92cc472440d..151905c0ef8 100644 --- a/src/mesa/main/clear.h +++ b/src/mesa/main/clear.h @@ -49,6 +49,9 @@ _mesa_Clear_no_error(GLbitfield mask); extern void GLAPIENTRY _mesa_Clear( GLbitfield mask ); +void GLAPIENTRY +_mesa_ClearBufferiv_no_error(GLenum buffer, GLint drawbuffer, + const GLint *value); extern void GLAPIENTRY _mesa_ClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint *value);