Evas: Fix GL shader selection for afill
authorJean-Philippe Andre <jp.andre@samsung.com>
Tue, 5 Apr 2016 05:54:29 +0000 (14:54 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 5 Apr 2016 09:20:36 +0000 (18:20 +0900)
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

index 88944c2..5fdd0aa 100644 (file)
@@ -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)