forked from enlightenment/efl
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:
parent
c2cebb9fbc
commit
f57da20b88
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue