From 2acc27cc6de5cae395d19017daf86ddd8de704cf Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Tue, 30 Jul 2013 22:29:16 +0200 Subject: st/dri: support the driconf option disable_blend_func_extended This is needed for Unigine. Reviewed-by: Kenneth Graunke Reviewed-by: Brian Paul --- src/mesa/state_tracker/st_extensions.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mesa/state_tracker') diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index bc0de494b81..b201012f9d2 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -713,7 +713,8 @@ void st_init_extensions(struct st_context *st) ctx->Extensions.EXT_framebuffer_multisample_blit_scaled = GL_TRUE; } - if (ctx->Const.MaxDualSourceDrawBuffers > 0) + if (ctx->Const.MaxDualSourceDrawBuffers > 0 && + !st->options.disable_blend_func_extended) ctx->Extensions.ARB_blend_func_extended = GL_TRUE; st->has_time_elapsed = -- cgit v1.2.3