forked from enlightenment/efl
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:
parent
1ffe82fb7c
commit
52c7cbddf5
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue