summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-07-17 22:35:16 +0200
committerSamuel Pitoiset <[email protected]>2017-07-31 13:53:39 +0200
commit905ad0d1ddc5ae8440dce88d78c3bf54752615fd (patch)
tree3588d6ebcaa16bf8dd5271487055fa1282ed159a /src/mesa
parent474f4b343be9b50fbe61d5f92676a9913197a6f5 (diff)
mesa: add KHR_no_error support to glBlendEquationiARB()
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/blend.c11
-rw-r--r--src/mesa/main/blend.h3
2 files changed, 14 insertions, 0 deletions
diff --git a/src/mesa/main/blend.c b/src/mesa/main/blend.c
index 84029ac6be9..8fb2d692a34 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 0f0bb624aee..ec79eaa13ca 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);