Evas: Filter: More aggresively avoid allocing filter data.

SVN revision: 58774
This commit is contained in:
Brett Nash 2011-04-21 06:01:53 +00:00
parent 97a442eaf1
commit 52a1e85d86
1 changed files with 3 additions and 0 deletions

View File

@ -184,6 +184,9 @@ evas_object_filter_set(Evas_Object *o, Evas_Filter filter)
if (((int)filter < (int)EVAS_FILTER_NONE) || (filter > EVAS_FILTER_LAST))
return EINA_FALSE;
/* Don't alloc on no-op */
if (!o-filter && filter == EVAS_FILTER_NONE) return EINA_TRUE;
if (!o->filter) filter_alloc(o);
if (!o->filter) return EINA_FALSE;