mesa: add KHR_no_error support to glClearBufferfv()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 21 Jul 2017 12:04:15 +0000 (14:04 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 2 Aug 2017 10:54:31 +0000 (12:54 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mapi/glapi/gen/GL3x.xml
src/mesa/main/clear.c
src/mesa/main/clear.h

index d6040faa3e2a4d49c99a52446268f898fcf150a9..5b3fa26436a72630c209ce24260187cd105e21ba 100644 (file)
     <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 *"/>
index 439e7dcfc550e38e622d44f1b523dc19c9891cbb..853d445b7efb2bcb4faebaab566da522b263f9d0 100644 (file)
@@ -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)
 {
index 6ae63ac257a0a11110116dcfced6dabbad764972..780e9ca05cfaec2ad03fa120bff6614e0a578c2a 100644 (file)
@@ -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);