forked from enlightenment/efl
evas - gl common - fix drop of image on cache hit in gl engine images
@fix - this fixes a leak (reference count leak)
This commit is contained in:
parent
84451db638
commit
1eaf26989b
|
@ -174,9 +174,7 @@ _evas_gl_common_image(Evas_Engine_GL_Context *gc, RGBA_Image *im_im,
|
||||||
{
|
{
|
||||||
if (im->im == im_im)
|
if (im->im == im_im)
|
||||||
{
|
{
|
||||||
// why did i put this here? i think to free the rgba pixel data once a texture
|
evas_cache_image_drop(&(im_im->cache_entry));
|
||||||
// exists.
|
|
||||||
// evas_cache_image_drop(&(im_im->cache_entry));
|
|
||||||
gc->shared->images = eina_list_remove_list(gc->shared->images, l);
|
gc->shared->images = eina_list_remove_list(gc->shared->images, l);
|
||||||
gc->shared->images = eina_list_prepend(gc->shared->images, im);
|
gc->shared->images = eina_list_prepend(gc->shared->images, im);
|
||||||
evas_gl_common_image_ref(im);
|
evas_gl_common_image_ref(im);
|
||||||
|
|
Loading…
Reference in New Issue