From: Carsten Haitzler Date: Wed, 26 Oct 2011 08:33:41 +0000 (+0000) Subject: we can't limit sizes on load because of "i'm just loading the header X-Git-Tag: submit/devel/efl/20131022.203902~7763 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e92b545beec8a9f3bb20917c5d14eecbf1ba6c1e;p=platform%2Fupstream%2Fefl.git we can't limit sizes on load because of "i'm just loading the header to find out the size" tricks. :( SVN revision: 64410 --- diff --git a/legacy/evas/src/modules/engines/gl_common/evas_gl_image.c b/legacy/evas/src/modules/engines/gl_common/evas_gl_image.c index 2d38e2f..f3734fb 100644 --- a/legacy/evas/src/modules/engines/gl_common/evas_gl_image.c +++ b/legacy/evas/src/modules/engines/gl_common/evas_gl_image.c @@ -105,7 +105,10 @@ evas_gl_common_image_load(Evas_Engine_GL_Context *gc, const char *file, const ch im_im = evas_common_load_image_from_file(file, key, lo, error); if (!im_im) return NULL; - + + /* i'd LOVe to do this, but we can't because we load to load header + * to get image size to know if its too big or not! so this disallows + * us to know that - photocam thus suffers if (((int)im_im->cache_entry.w > gc->shared->info.max_texture_size) || ((int)im_im->cache_entry.h > gc->shared->info.max_texture_size)) { @@ -113,7 +116,8 @@ evas_gl_common_image_load(Evas_Engine_GL_Context *gc, const char *file, const ch *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; return NULL; } - + */ + // FIXME: keep unreffed shared images around EINA_LIST_FOREACH(gc->shared->images, l, im) {