jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=f57da20b88e7118fef9621572167ca72aedd0647

commit f57da20b88e7118fef9621572167ca72aedd0647
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Tue Apr 5 14:54:29 2016 +0900

    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 88944c2..5fdd0aa 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)

-- 


Reply via email to