[Mesa-dev] [PATCH 045/101] mesa: add KHR_no_error support to glBlendEquationSeparate()
Samuel Pitoiset
samuel.pitoiset at gmail.com
Fri Jul 21 17:39:54 UTC 2017
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
src/mapi/glapi/gen/gl_API.xml | 2 +-
src/mesa/main/blend.c | 8 ++++++++
src/mesa/main/blend.h | 3 +++
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml
index 2e3eeaacd1..fc863be87a 100644
--- a/src/mapi/glapi/gen/gl_API.xml
+++ b/src/mapi/glapi/gen/gl_API.xml
@@ -5261,7 +5261,7 @@
<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"/>
diff --git a/src/mesa/main/blend.c b/src/mesa/main/blend.c
index 2c13f19004..9ca04c1db2 100644
--- a/src/mesa/main/blend.c
+++ b/src/mesa/main/blend.c
@@ -673,6 +673,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)
{
GET_CURRENT_CONTEXT(ctx);
diff --git a/src/mesa/main/blend.h b/src/mesa/main/blend.h
index ec79eaa13c..2454e0c744 100644
--- a/src/mesa/main/blend.h
+++ b/src/mesa/main/blend.h
@@ -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 );
--
2.13.3
More information about the mesa-dev
mailing list