mesa: add KHR_no_error support to glClearBufferiv()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 21 Jul 2017 12:28:52 +0000 (14:28 +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 8b895ccb4940f18f696b8b17a33b2ee62555ee20..8d10f78e82412a257606a05135581202b6a4c3b5 100644 (file)
 
   <!-- These functions are unique to GL3 -->
 
-  <function name="ClearBufferiv" es2="3.0" marshal="custom">
+  <function name="ClearBufferiv" es2="3.0" marshal="custom" no_error="true">
     <param name="buffer" type="GLenum"/>
     <param name="drawbuffer" type="GLint"/>
     <param name="value" type="const GLint *"/>
index ea75a95184ecb09d36621e34c615d6b7a596a48c..c5e7f1346b0ce2dd2ece269b0dde93ec555d9a3b 100644 (file)
@@ -414,6 +414,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)
 {
index 92cc472440d77bf9ce1a8f7a58338a3c26594244..151905c0ef8b5d0c29c77b0cb15188b25bdd0329 100644 (file)
@@ -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);