((int)im_im->cache_entry.h > gc->shared->info.max_texture_size))
{
evas_cache_image_drop(&(im_im->cache_entry));
- *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
+ if (error) *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
return NULL;
}
*/
gc->shared->images = eina_list_remove_list(gc->shared->images, l);
gc->shared->images = eina_list_prepend(gc->shared->images, im);
evas_gl_common_image_ref(im);
- *error = EVAS_LOAD_ERROR_NONE;
+ if (error) *error = EVAS_LOAD_ERROR_NONE;
return im;
}
}
else
#endif
evas_cache_image_drop(&(im_im->cache_entry));
- *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
+ if (error) *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
return NULL;
}
if (im_im->cache_entry.cspaces)