[Mesa-dev] [PATCH 006/101] mesa: add KHR_no_error support to glBlendEquationiARB()
Samuel Pitoiset
samuel.pitoiset at gmail.com
Fri Jul 21 17:39:15 UTC 2017
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
src/mapi/glapi/gen/ARB_draw_buffers_blend.xml | 2 +-
src/mesa/main/blend.c | 11 +++++++++++
src/mesa/main/blend.h | 3 +++
3 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/src/mapi/glapi/gen/ARB_draw_buffers_blend.xml b/src/mapi/glapi/gen/ARB_draw_buffers_blend.xml
index 1a44f38d16..7c2877d3d6 100644
--- a/src/mapi/glapi/gen/ARB_draw_buffers_blend.xml
+++ b/src/mapi/glapi/gen/ARB_draw_buffers_blend.xml
@@ -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>
diff --git a/src/mesa/main/blend.c b/src/mesa/main/blend.c
index 84029ac6be..8fb2d692a3 100644
--- a/src/mesa/main/blend.c
+++ b/src/mesa/main/blend.c
@@ -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)
{
diff --git a/src/mesa/main/blend.h b/src/mesa/main/blend.h
index 0f0bb624ae..ec79eaa13c 100644
--- a/src/mesa/main/blend.h
+++ b/src/mesa/main/blend.h
@@ -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);
--
2.13.3
More information about the mesa-dev
mailing list