[Mesa-dev] [Mesa-dev RESEND 18/26] mesa: add KHR_no_error support to glClearBufferfv()

Samuel Pitoiset samuel.pitoiset at gmail.com
Tue Aug 1 09:11:52 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 d6040faa3e..5b3fa26436 100644
--- a/src/mapi/glapi/gen/GL3x.xml
+++ b/src/mapi/glapi/gen/GL3x.xml
@@ -129,7 +129,7 @@
     <param name="value" type="const GLuint *"/>
   </function>
 
-  <function name="ClearBufferfv" es2="3.0" marshal="custom">
+  <function name="ClearBufferfv" es2="3.0" marshal="custom" no_error="true">
     <param name="buffer" type="GLenum"/>
     <param name="drawbuffer" type="GLint"/>
     <param name="value" type="const GLfloat *"/>
diff --git a/src/mesa/main/clear.c b/src/mesa/main/clear.c
index 439e7dcfc5..853d445b7e 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 6ae63ac257..780e9ca05c 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);
 
-- 
2.13.3



More information about the mesa-dev mailing list