From: Samuel Pitoiset Date: Fri, 21 Jul 2017 12:04:15 +0000 (+0200) Subject: mesa: add KHR_no_error support to glClearBufferfv() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5e05e7debcc176c9bae72478552337417dddafd2;p=mesa.git mesa: add KHR_no_error support to glClearBufferfv() 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 d6040faa3e2..5b3fa26436a 100644 --- a/src/mapi/glapi/gen/GL3x.xml +++ b/src/mapi/glapi/gen/GL3x.xml @@ -129,7 +129,7 @@ - + diff --git a/src/mesa/main/clear.c b/src/mesa/main/clear.c index 439e7dcfc55..853d445b7ef 100644 --- a/src/mesa/main/clear.c +++ b/src/mesa/main/clear.c @@ -583,6 +583,15 @@ clear_bufferfv(struct gl_context *ctx, GLenum buffer, GLint drawbuffer, } +void GLAPIENTRY +_mesa_ClearBufferfv_no_error(GLenum buffer, GLint drawbuffer, + const GLfloat *value) +{ + GET_CURRENT_CONTEXT(ctx); + clear_bufferfv(ctx, buffer, drawbuffer, value, true); +} + + void GLAPIENTRY _mesa_ClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat *value) { diff --git a/src/mesa/main/clear.h b/src/mesa/main/clear.h index 6ae63ac257a..780e9ca05cf 100644 --- a/src/mesa/main/clear.h +++ b/src/mesa/main/clear.h @@ -64,6 +64,10 @@ extern void GLAPIENTRY _mesa_ClearNamedFramebufferuiv(GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLuint *value); +void GLAPIENTRY +_mesa_ClearBufferfv_no_error(GLenum buffer, GLint drawbuffer, + const GLfloat *value); + extern void GLAPIENTRY _mesa_ClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat *value);