Software 16bpp variants were crashing if using preload as the
Image_Entry that was used by preload did not keep the loader and
module information, since these were only set in the
Soft16_Image::source. Now we copy these members while the source is
live.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50299
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
sim->cache_entry.w = sim->source->cache_entry.w;
sim->cache_entry.h = sim->source->cache_entry.h;
ie->flags.alpha = im->cache_entry.flags.alpha;
+ sim->cache_entry.info = im->cache_entry.info;
if (sim->stride < 0) sim->stride = _calc_stride(sim->cache_entry.w);
return 0;
soft16_image_convert_from_rgb(im, sp);
}
evas_cache_image_drop(&im->source->cache_entry);
+ im->cache_entry.info.module = NULL;
+ im->cache_entry.info.loader = NULL;
im->source = NULL;
return 0;