From 575ecb0ea21732d01855dddce569fa1a3cb4d1ef Mon Sep 17 00:00:00 2001 From: ChunEon Park Date: Sat, 24 Nov 2012 14:54:31 +0000 Subject: [PATCH] evas/gl - return quickly as possible. SVN revision: 79634 --- src/modules/evas/engines/gl_common/evas_gl_texture.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/evas/engines/gl_common/evas_gl_texture.c b/src/modules/evas/engines/gl_common/evas_gl_texture.c index e4e7097ecd..f84b3ed5cd 100644 --- a/src/modules/evas/engines/gl_common/evas_gl_texture.c +++ b/src/modules/evas/engines/gl_common/evas_gl_texture.c @@ -831,6 +831,8 @@ evas_gl_common_texture_update(Evas_GL_Texture *tex, RGBA_Image *im) { GLuint fmt; + if (!im->image.data) return; + if (tex->alpha != im->cache_entry.flags.alpha) { tex->pt->allocations = eina_list_remove(tex->pt->allocations, tex); @@ -852,7 +854,6 @@ evas_gl_common_texture_update(Evas_GL_Texture *tex, RGBA_Image *im) } } if (!tex->pt) return; - if (!im->image.data) return; fmt = tex->pt->format; glBindTexture(GL_TEXTURE_2D, tex->pt->texture);