[Mesa-dev] [PATCH v3 6/8] mesa: Enable usage of blend_func_extended blend factors
Ian Romanick
idr at freedesktop.org
Fri Nov 6 09:58:14 PST 2015
On 11/05/2015 06:47 PM, Ryan Houdek wrote:
> ---
> src/mesa/main/blend.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/mesa/main/blend.c b/src/mesa/main/blend.c
> index 20aa498..185e30e 100644
> --- a/src/mesa/main/blend.c
> +++ b/src/mesa/main/blend.c
> @@ -67,7 +67,7 @@ legal_src_factor(const struct gl_context *ctx, GLenum factor)
> case GL_SRC1_ALPHA:
> case GL_ONE_MINUS_SRC1_COLOR:
> case GL_ONE_MINUS_SRC1_ALPHA:
> - return _mesa_is_desktop_gl(ctx)
> + return ctx->API != API_OPENGLES
> && ctx->Extensions.ARB_blend_func_extended;
> default:
> return GL_FALSE;
> @@ -107,7 +107,7 @@ legal_dst_factor(const struct gl_context *ctx, GLenum factor)
> case GL_SRC1_ALPHA:
> case GL_ONE_MINUS_SRC1_COLOR:
> case GL_ONE_MINUS_SRC1_ALPHA:
> - return _mesa_is_desktop_gl(ctx)
> + return ctx->API != API_OPENGLES
> && ctx->Extensions.ARB_blend_func_extended;
> default:
> return GL_FALSE;
>
This extension also enables GL_SRC_ALPHA_SATURATE as a destination
weight. Previously this was only available in OpenGL ES 3.0+ or desktop
OpenGL.
More information about the mesa-dev
mailing list