mesa: add KHR_no_error support to glBlendEquationSeparate()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 19 Jul 2017 07:53:49 +0000 (09:53 +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/gl_API.xml
src/mesa/main/blend.c
src/mesa/main/blend.h

index 2e3eeaacd152266ec35c9409643cc3f46f83719b..fc863be87af0b9938a13e2f038a3cdbe8f913d86 100644 (file)
     <enum name="STENCIL_BACK_VALUE_MASK"          value="0x8CA4"/>
     <enum name="STENCIL_BACK_WRITEMASK"           value="0x8CA5"/>
 
-    <function name="BlendEquationSeparate" es2="2.0">
+    <function name="BlendEquationSeparate" es2="2.0" no_error="true">
         <param name="modeRGB" type="GLenum"/>
         <param name="modeA" type="GLenum"/>
         <glx rop="4228"/>
index 2c13f1900495452410e3b1d35133799991bda776..9ca04c1db29ffb83a5a73a9c0e59426dc7d38732 100644 (file)
@@ -672,6 +672,14 @@ blend_equation_separate(struct gl_context *ctx, GLenum modeRGB, GLenum modeA,
 }
 
 
+void GLAPIENTRY
+_mesa_BlendEquationSeparate_no_error(GLenum modeRGB, GLenum modeA)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   blend_equation_separate(ctx, modeRGB, modeA, true);
+}
+
+
 void GLAPIENTRY
 _mesa_BlendEquationSeparate(GLenum modeRGB, GLenum modeA)
 {
index ec79eaa13cae932ea57ba1132e2244c7e1236f81..2454e0c744e1c7b2e96fa1dcbd4dcc04401a0d52 100644 (file)
@@ -82,6 +82,9 @@ extern void GLAPIENTRY
 _mesa_BlendEquationiARB(GLuint buf, GLenum mode);
 
 
+void GLAPIENTRY
+_mesa_BlendEquationSeparate_no_error(GLenum modeRGB, GLenum modeA);
+
 extern void GLAPIENTRY
 _mesa_BlendEquationSeparate( GLenum modeRGB, GLenum modeA );