evas: check wether we do have a data or not.
authorCedric Bail <cedric.bail@samsung.com>
Wed, 26 Jun 2013 02:49:16 +0000 (11:49 +0900)
committerCedric Bail <cedric.bail@samsung.com>
Wed, 26 Jun 2013 02:49:16 +0000 (11:49 +0900)
src/modules/evas/engines/gl_common/evas_gl_texture.c

index 426549c..cbd57b2 100644 (file)
@@ -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)