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.
This commit is contained in:
Jean-Philippe Andre 2016-04-05 14:54:29 +09:00
parent c2cebb9fbc
commit f57da20b88
1 changed files with 5 additions and 2 deletions

View 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)