mesa: add KHR_no_error support to glClearBufferuiv()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 21 Jul 2017 12:25:03 +0000 (14:25 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 2 Aug 2017 10:54:32 +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 6df40db3800e44ad2e7b018a2b79c99e8108c866..8b895ccb4940f18f696b8b17a33b2ee62555ee20 100644 (file)
     <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 *"/>
index 5ee1eb2433747865c41fbf145b9acbf9fe9217cd..3aa3cfd9a9846320e743746d11e09236a35a0893 100644 (file)
@@ -485,6 +485,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)
 {
index acc0e68ed7f72bfbad66e2a48eca27f1298ad63d..92cc472440d77bf9ce1a8f7a58338a3c26594244 100644 (file)
@@ -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);