From f57da20b88e7118fef9621572167ca72aedd0647 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Tue, 5 Apr 2016 14:54:29 +0900 Subject: [PATCH] Evas: Fix GL shader selection for afill AFILL should be used only for certain images, which are actually native external or dynamic content images. All normal image don't need the AFILL flag, since they should have proper argb and alpha flag. --- src/modules/evas/engines/gl_common/evas_gl_shader.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/modules/evas/engines/gl_common/evas_gl_shader.c b/src/modules/evas/engines/gl_common/evas_gl_shader.c index 88944c272e..5fdd0aa52d 100644 --- a/src/modules/evas/engines/gl_common/evas_gl_shader.c +++ b/src/modules/evas/engines/gl_common/evas_gl_shader.c @@ -801,8 +801,11 @@ evas_gl_common_shader_flags_get(Evas_GL_Shared *shared, Shader_Type type, if (tex) { flags |= SHADER_FLAG_TEX; - if (!tex->alpha) - flags |= SHADER_FLAG_AFILL; + if (!tex->alpha && tex_only) + { + if ((flags & SHADER_FLAG_EXTERNAL) || tex->pt->dyn.img) + flags |= SHADER_FLAG_AFILL; + } } if (mtex)