mesa: add KHR_no_error support to glBlendEquationiARB()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 17 Jul 2017 20:35:16 +0000 (22:35 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 31 Jul 2017 11:53:39 +0000 (13:53 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mapi/glapi/gen/ARB_draw_buffers_blend.xml
src/mesa/main/blend.c
src/mesa/main/blend.h

index 1a44f38d16a125b2596ae4a110eeab8de17af520..7c2877d3d693daa885e7fe3e2272bd4200034640 100644 (file)
@@ -8,7 +8,7 @@
 
 <category name="GL_ARB_draw_buffers_blend" number="69">
 
-    <function name="BlendEquationiARB">
+    <function name="BlendEquationiARB" no_error="true">
         <param name="buf" type="GLuint"/>
         <param name="mode" type="GLenum"/>
     </function>
index 84029ac6be99132ec093a08f5c74342734dd57f8..8fb2d692a34f3607e5dd107fb17b9f2b3bb5c768 100644 (file)
@@ -569,6 +569,17 @@ blend_equationi(struct gl_context *ctx, GLuint buf, GLenum mode,
       ctx->Color._AdvancedBlendMode = advanced_mode;
 }
 
+
+void GLAPIENTRY
+_mesa_BlendEquationiARB_no_error(GLuint buf, GLenum mode)
+{
+   GET_CURRENT_CONTEXT(ctx);
+
+   enum gl_advanced_blend_mode advanced_mode = advanced_blend_mode(ctx, mode);
+   blend_equationi(ctx, buf, mode, advanced_mode);
+}
+
+
 void GLAPIENTRY
 _mesa_BlendEquationiARB(GLuint buf, GLenum mode)
 {
index 0f0bb624aeeda636437c390e1c66b8c323551c13..ec79eaa13cae932ea57ba1132e2244c7e1236f81 100644 (file)
@@ -75,6 +75,9 @@ extern void GLAPIENTRY
 _mesa_BlendEquation( GLenum mode );
 
 
+void GLAPIENTRY
+_mesa_BlendEquationiARB_no_error(GLuint buf, GLenum mode);
+
 extern void GLAPIENTRY
 _mesa_BlendEquationiARB(GLuint buf, GLenum mode);