forked from enlightenment/efl
Evas filters: Fix blur from rgba to alpha
This commit is contained in:
parent
4882788527
commit
f57929bf6e
|
@ -931,14 +931,9 @@ evas_filter_command_blur_add(Evas_Filter_Context *ctx, void *drawctx,
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!in->alpha_only && out->alpha_only)
|
if ((blend || (in->alpha_only && !out->alpha_only)) ||
|
||||||
{
|
(!blend && !in->alpha_only && !out->alpha_only && (color != 0xFFFFFFFF)) ||
|
||||||
/* FIXME: Add temporary buffer + blend */
|
(!in->alpha_only && out->alpha_only))
|
||||||
ERR("Input is RGBA but output is Alpha only. Unsupported config for blur.");
|
|
||||||
goto fail;
|
|
||||||
}
|
|
||||||
else if ((blend || (in->alpha_only && !out->alpha_only)) ||
|
|
||||||
(!blend && !in->alpha_only && !out->alpha_only && (color != 0xFFFFFFFF)))
|
|
||||||
{
|
{
|
||||||
XDBG("Adding extra blending step %d --> %d (%s --> %s)", in->id, out->id,
|
XDBG("Adding extra blending step %d --> %d (%s --> %s)", in->id, out->id,
|
||||||
in->alpha_only ? "Alpha" : "RGBA",
|
in->alpha_only ? "Alpha" : "RGBA",
|
||||||
|
|
Loading…
Reference in New Issue