[Mesa-dev] [Mesa-dev RESEND 22/26] mesa: add KHR_no_error support to glClearBufferuiv()
Samuel Pitoiset
samuel.pitoiset at gmail.com
Tue Aug 1 09:11:56 UTC 2017
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
src/mapi/glapi/gen/GL3x.xml | 2 +-
src/mesa/main/clear.c | 9 +++++++++
src/mesa/main/clear.h | 4 ++++
3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/src/mapi/glapi/gen/GL3x.xml b/src/mapi/glapi/gen/GL3x.xml
index 6df40db380..8b895ccb49 100644
--- a/src/mapi/glapi/gen/GL3x.xml
+++ b/src/mapi/glapi/gen/GL3x.xml
@@ -123,7 +123,7 @@
<param name="value" type="const GLint *"/>
</function>
- <function name="ClearBufferuiv" es2="3.0" marshal="custom">
+ <function name="ClearBufferuiv" es2="3.0" marshal="custom" no_error="true">
<param name="buffer" type="GLenum"/>
<param name="drawbuffer" type="GLint"/>
<param name="value" type="const GLuint *"/>
diff --git a/src/mesa/main/clear.c b/src/mesa/main/clear.c
index 5ee1eb2433..3aa3cfd9a9 100644
--- a/src/mesa/main/clear.c
+++ b/src/mesa/main/clear.c
@@ -486,6 +486,15 @@ clear_bufferuiv(struct gl_context *ctx, GLenum buffer, GLint drawbuffer,
void GLAPIENTRY
+_mesa_ClearBufferuiv_no_error(GLenum buffer, GLint drawbuffer,
+ const GLuint *value)
+{
+ GET_CURRENT_CONTEXT(ctx);
+ clear_bufferuiv(ctx, buffer, drawbuffer, value, true);
+}
+
+
+void GLAPIENTRY
_mesa_ClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint *value)
{
GET_CURRENT_CONTEXT(ctx);
diff --git a/src/mesa/main/clear.h b/src/mesa/main/clear.h
index acc0e68ed7..92cc472440 100644
--- a/src/mesa/main/clear.h
+++ b/src/mesa/main/clear.h
@@ -57,6 +57,10 @@ extern void GLAPIENTRY
_mesa_ClearNamedFramebufferiv(GLuint framebuffer, GLenum buffer,
GLint drawbuffer, const GLint *value);
+void GLAPIENTRY
+_mesa_ClearBufferuiv_no_error(GLenum buffer, GLint drawbuffer,
+ const GLuint *value);
+
extern void GLAPIENTRY
_mesa_ClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint *value);
--
2.13.3
More information about the mesa-dev
mailing list