aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-07-21 14:04:15 +0200
committerSamuel Pitoiset <[email protected]>2017-08-02 12:54:31 +0200
commit5e05e7debcc176c9bae72478552337417dddafd2 (patch)
treeffb14a02868da8955738ddb8aff0c26a79c0aed5 /src/mesa
parent33b47306e48b0e51458a728514fa026377ac7166 (diff)
mesa: add KHR_no_error support to glClearBufferfv()
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/clear.c9
-rw-r--r--src/mesa/main/clear.h4
2 files changed, 13 insertions, 0 deletions
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
@@ -584,6 +584,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)
{
GET_CURRENT_CONTEXT(ctx);
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);