From d64c808a733321dfec13d3fe677278d0cdb817b4 Mon Sep 17 00:00:00 2001 From: Cedric Bail Date: Wed, 26 Jun 2013 11:49:16 +0900 Subject: [PATCH] evas: check wether we do have a data or not. --- src/modules/evas/engines/gl_common/evas_gl_texture.c | 1 + 1 file changed, 1 insertion(+) 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 426549cc74..cbd57b21aa 100644 --- a/src/modules/evas/engines/gl_common/evas_gl_texture.c +++ b/src/modules/evas/engines/gl_common/evas_gl_texture.c @@ -825,6 +825,7 @@ evas_gl_common_texture_update(Evas_GL_Texture *tex, RGBA_Image *im) } // If image was preloaded then we need a ptt if (!tex->pt) return; + if (!im->image.data) return; // if preloaded, then async push it in after uploading a miniature of it if (im->cache_entry.flags.preload_done && tex->w > 2 * EVAS_GL_TILE_SIZE && tex->h > 2 * EVAS_GL_TILE_SIZE)