summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Arceri <tarceri@itsqueeze.com>2017-05-15 10:51:34 +1000
committerTimothy Arceri <tarceri@itsqueeze.com>2017-05-17 10:12:04 +1000
commit25591adc286a217ee344d17d277c81ba9e6d353b (patch)
treeab8f1d7b9d7c5a233b8c3d33bc65da52d2961dc3
parent9aff3c605b925ad3302f392ad378198845438dfa (diff)
mesa: add KHR_no_error support for glBlendEquationSeparateiARB()
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
-rw-r--r--src/mapi/glapi/gen/ARB_draw_buffers_blend.xml2
-rw-r--r--src/mesa/main/blend.c9
-rw-r--r--src/mesa/main/blend.h3
3 files changed, 13 insertions, 1 deletions
diff --git a/src/mapi/glapi/gen/ARB_draw_buffers_blend.xml b/src/mapi/glapi/gen/ARB_draw_buffers_blend.xml
index 4d44adf1de..1a44f38d16 100644
--- a/src/mapi/glapi/gen/ARB_draw_buffers_blend.xml
+++ b/src/mapi/glapi/gen/ARB_draw_buffers_blend.xml
@@ -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"/>
diff --git a/src/mesa/main/blend.c b/src/mesa/main/blend.c
index e91c14aeb9..8c763ed34e 100644
--- a/src/mesa/main/blend.c
+++ b/src/mesa/main/blend.c
@@ -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.
*/
diff --git a/src/mesa/main/blend.h b/src/mesa/main/blend.h
index 199345df60..54b9ce6e1b 100644
--- a/src/mesa/main/blend.h
+++ b/src/mesa/main/blend.h
@@ -77,6 +77,9 @@ _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);