summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-07-21 14:28:52 +0200
committerSamuel Pitoiset <[email protected]>2017-08-02 12:54:32 +0200
commitda0ecdae1da7912a5ed4a1c018ed270888d5b1d6 (patch)
treef3f6672b4fee441ebb05dd9c1e6b2ad968579bbf /src/mesa/main
parent54bd9a1d6698760e714606b111fe49ddae2f01f1 (diff)
mesa: add KHR_no_error support to glClearBufferiv()
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/clear.c8
-rw-r--r--src/mesa/main/clear.h3
2 files changed, 11 insertions, 0 deletions
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
@@ -415,6 +415,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)
{
GET_CURRENT_CONTEXT(ctx);
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);