forked from enlightenment/efl
Evas filters: Fix usage of proxy buffers (compatibility)
The previous API supported stuff like "mask{'image1'}" but image1 is now not a valid buffer name, as it's only the proxy source name. This patch fixes the buffer lookup.
This commit is contained in:
parent
0446619355
commit
8fa3b2b111
|
@ -602,8 +602,12 @@ _buffer_get(Evas_Filter_Program *pgm, const char *name)
|
||||||
EINA_SAFETY_ON_NULL_RETURN_VAL(name, NULL);
|
EINA_SAFETY_ON_NULL_RETURN_VAL(name, NULL);
|
||||||
|
|
||||||
EINA_INLIST_FOREACH(pgm->buffers, buf)
|
EINA_INLIST_FOREACH(pgm->buffers, buf)
|
||||||
if (!strcmp(buf->name, name))
|
{
|
||||||
return buf;
|
if (!strcmp(buf->name, name))
|
||||||
|
return buf;
|
||||||
|
else if (buf->proxy && !strcmp(buf->proxy, name))
|
||||||
|
return buf;
|
||||||
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue