Evas GL common: Avoid excessive pipe flushes in image free

This should boost performance a little bit when an image is
just unref'ed but not deleted (thus doesn't need a pipe flush).
This commit is contained in:
Jean-Philippe Andre 2015-04-23 16:14:22 +09:00
parent 1ffe82fb7c
commit 52c7cbddf5
1 changed files with 1 additions and 1 deletions

View File

@ -688,9 +688,9 @@ evas_gl_common_image_cache_flush(Evas_Engine_GL_Context *gc)
EAPI void
evas_gl_common_image_free(Evas_GL_Image *im)
{
evas_gl_common_context_flush(im->gc);
im->references--;
if (im->references > 0) return;
evas_gl_common_context_flush(im->gc);
if (im->scaled.origin)
{