summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2012-11-24 14:54:31 +0000
committerChunEon Park <hermet@hermet.pe.kr>2012-11-24 14:54:31 +0000
commit575ecb0ea21732d01855dddce569fa1a3cb4d1ef (patch)
treebe13144186b51271e0934ec1b9989477984a2015 /src
parent07ee75ee5b5e41332fd813603d05e8bce958535a (diff)
evas/gl - return quickly as possible.
SVN revision: 79634
Diffstat (limited to 'src')
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_texture.c3
1 files changed, 2 insertions, 1 deletions
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)
831{ 831{
832 GLuint fmt; 832 GLuint fmt;
833 833
834 if (!im->image.data) return;
835
834 if (tex->alpha != im->cache_entry.flags.alpha) 836 if (tex->alpha != im->cache_entry.flags.alpha)
835 { 837 {
836 tex->pt->allocations = eina_list_remove(tex->pt->allocations, tex); 838 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)
852 } 854 }
853 } 855 }
854 if (!tex->pt) return; 856 if (!tex->pt) return;
855 if (!im->image.data) return;
856 857
857 fmt = tex->pt->format; 858 fmt = tex->pt->format;
858 glBindTexture(GL_TEXTURE_2D, tex->pt->texture); 859 glBindTexture(GL_TEXTURE_2D, tex->pt->texture);