From: Samuel Pitoiset Date: Wed, 19 Jul 2017 07:53:49 +0000 (+0200) Subject: mesa: add KHR_no_error support to glBlendEquationSeparate() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d5d01193f43aeb0cf7ab58f58c614ecc142398eb;p=mesa.git mesa: add KHR_no_error support to glBlendEquationSeparate() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml index 2e3eeaacd15..fc863be87af 100644 --- a/src/mapi/glapi/gen/gl_API.xml +++ b/src/mapi/glapi/gen/gl_API.xml @@ -5261,7 +5261,7 @@ - + diff --git a/src/mesa/main/blend.c b/src/mesa/main/blend.c index 2c13f190049..9ca04c1db29 100644 --- a/src/mesa/main/blend.c +++ b/src/mesa/main/blend.c @@ -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) { diff --git a/src/mesa/main/blend.h b/src/mesa/main/blend.h index ec79eaa13ca..2454e0c744e 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 );