Evas: Fix bug in evas_cache_image_dirty()
Summary: Code which shouldn't be removed was removed by '800279c23bdb0e925f112c96516dcc96a5487684' Reviewers: spacegrapher, cedric, jpeg Reviewed By: jpeg Subscribers: scholb.kim, dkdk, wonsik, cedric Differential Revision: https://phab.enlightenment.org/D3278
This commit is contained in:
parent
13b1756394
commit
25bcf4c64f
|
@ -972,6 +972,9 @@ evas_cache_image_dirty(Image_Entry *im, unsigned int x, unsigned int y, unsigned
|
|||
|
||||
cache = im->cache;
|
||||
if (!(im->flags.dirty))
|
||||
{
|
||||
if (im->references == 1) im_dirty = im;
|
||||
else
|
||||
{
|
||||
im_dirty =
|
||||
evas_cache_image_copied_data(cache, im->w, im->h,
|
||||
|
@ -983,6 +986,7 @@ evas_cache_image_dirty(Image_Entry *im, unsigned int x, unsigned int y, unsigned
|
|||
if (cache->func.debug) cache->func.debug("dirty-out", im_dirty);
|
||||
im_dirty->references = 1;
|
||||
evas_cache_image_drop(im);
|
||||
}
|
||||
_evas_cache_image_dirty_add(im_dirty);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue