mesa: add KHR_no_error support for glBlendEquationSeparateiARB()
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 15 May 2017 00:51:34 +0000 (10:51 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 17 May 2017 00:12:04 +0000 (10:12 +1000)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mapi/glapi/gen/ARB_draw_buffers_blend.xml
src/mesa/main/blend.c
src/mesa/main/blend.h

index 4d44adf1de94ae3bb8f0522076b10f84f1b9ab92..1a44f38d16a125b2596ae4a110eeab8de17af520 100644 (file)
@@ -13,7 +13,7 @@
         <param name="mode" type="GLenum"/>
     </function>
 
-    <function name="BlendEquationSeparateiARB">
+    <function name="BlendEquationSeparateiARB" no_error="true">
         <param name="buf" type="GLuint"/>
         <param name="modeRGB" type="GLenum"/>
         <param name="modeA" type="GLenum"/>
index e91c14aeb9dd0e925f3120e98a42f31b16f2bc7f..8c763ed34e564dfbf13eda6332607b81077bfa3b 100644 (file)
@@ -615,6 +615,15 @@ blend_equation_separatei(struct gl_context *ctx, GLuint buf, GLenum modeRGB,
 }
 
 
+void GLAPIENTRY
+_mesa_BlendEquationSeparateiARB_no_error(GLuint buf, GLenum modeRGB,
+                                         GLenum modeA)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   blend_equation_separatei(ctx, buf, modeRGB, modeA);
+}
+
+
 /**
  * Set separate blend equations for one color buffer/target.
  */
index 199345df600eff609c97d552dfdcf11d1c4268fb..54b9ce6e1b1f9098a07e8515a24179fbae189e65 100644 (file)
@@ -76,6 +76,9 @@ extern void GLAPIENTRY
 _mesa_BlendEquationSeparate( GLenum modeRGB, GLenum modeA );
 
 
+extern void GLAPIENTRY
+_mesa_BlendEquationSeparateiARB_no_error(GLuint buf, GLenum modeRGB,
+                                         GLenum modeA);
 extern void GLAPIENTRY
 _mesa_BlendEquationSeparateiARB(GLuint buf, GLenum modeRGB, GLenum modeA);