cedric pushed a commit to branch master.
commit d64c808a733321dfec13d3fe677278d0cdb817b4
Author: Cedric Bail <[email protected]>
Date: Wed Jun 26 11:49:16 2013 +0900
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 426549c..cbd57b2 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)
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev