forked from enlightenment/efl
we can't limit sizes on load because of "i'm just loading the header
to find out the size" tricks. :( SVN revision: 64410
This commit is contained in:
parent
b08afffb83
commit
e92b545bee
|
@ -106,6 +106,9 @@ 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);
|
im_im = evas_common_load_image_from_file(file, key, lo, error);
|
||||||
if (!im_im) return NULL;
|
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) ||
|
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))
|
((int)im_im->cache_entry.h > gc->shared->info.max_texture_size))
|
||||||
{
|
{
|
||||||
|
@ -113,6 +116,7 @@ evas_gl_common_image_load(Evas_Engine_GL_Context *gc, const char *file, const ch
|
||||||
*error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
|
*error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
// FIXME: keep unreffed shared images around
|
// FIXME: keep unreffed shared images around
|
||||||
EINA_LIST_FOREACH(gc->shared->images, l, im)
|
EINA_LIST_FOREACH(gc->shared->images, l, im)
|
||||||
|
|
Loading…
Reference in New Issue