forked from enlightenment/efl
Revert "Evas: Set image load_error after load"
Oops, I didn't test this enough.
This causes some problems with E's pager for instance.
This reverts commit 42d2f8a12b
.
This commit is contained in:
parent
42d2f8a12b
commit
64238ca9f1
|
@ -762,7 +762,6 @@ void
|
|||
evas_gl_common_image_update(Evas_Engine_GL_Context *gc, Evas_GL_Image *im)
|
||||
{
|
||||
Image_Entry *ie;
|
||||
|
||||
if (!im->im) return;
|
||||
ie = &im->im->cache_entry;
|
||||
evas_gl_common_image_alloc_ensure(im);
|
||||
|
@ -809,36 +808,32 @@ evas_gl_common_image_update(Evas_Engine_GL_Context *gc, Evas_GL_Image *im)
|
|||
#ifdef EVAS_CSERVE2
|
||||
if (evas_cache2_image_cached(ie))
|
||||
{
|
||||
ie->load_error = evas_cache2_image_load_data(ie);
|
||||
if (ie->load_error == EVAS_LOAD_ERROR_NONE)
|
||||
evas_cache2_image_load_data(ie);
|
||||
evas_gl_common_texture_update(im->tex, im->im);
|
||||
evas_cache2_image_unload_data(ie);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
ie->load_error = evas_cache_image_load_data(ie);
|
||||
if (ie->load_error == EVAS_LOAD_ERROR_NONE)
|
||||
evas_cache_image_load_data(ie);
|
||||
evas_gl_common_texture_update(im->tex, im->im);
|
||||
evas_cache_image_unload_data(ie);
|
||||
}
|
||||
ie->flags.updated_data = 0;
|
||||
}
|
||||
else if ((!im->tex) && (ie->load_error == EVAS_LOAD_ERROR_NONE))
|
||||
if (!im->tex)
|
||||
{
|
||||
#ifdef EVAS_CSERVE2
|
||||
if (evas_cache2_image_cached(ie))
|
||||
{
|
||||
ie->load_error = evas_cache2_image_load_data(ie);
|
||||
if (ie->load_error == EVAS_LOAD_ERROR_NONE)
|
||||
evas_cache2_image_load_data(ie);
|
||||
im->tex = evas_gl_common_texture_new(gc, im->im);
|
||||
evas_cache2_image_unload_data(ie);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
ie->load_error = evas_cache_image_load_data(ie);
|
||||
if (ie->load_error == EVAS_LOAD_ERROR_NONE)
|
||||
evas_cache_image_load_data(ie);
|
||||
im->tex = evas_gl_common_texture_new(gc, im->im);
|
||||
evas_cache_image_unload_data(ie);
|
||||
}
|
||||
|
@ -849,15 +844,13 @@ evas_gl_common_image_update(Evas_Engine_GL_Context *gc, Evas_GL_Image *im)
|
|||
case EVAS_COLORSPACE_ETC1_ALPHA:
|
||||
if ((im->tex) && (im->dirty))
|
||||
{
|
||||
ie->load_error = evas_cache_image_load_data(ie);
|
||||
if (ie->load_error == EVAS_LOAD_ERROR_NONE)
|
||||
evas_cache_image_load_data(ie);
|
||||
evas_gl_common_texture_rgb_a_pair_update(im->tex, im->im);
|
||||
evas_cache_image_unload_data(ie);
|
||||
}
|
||||
else if ((!im->tex) && (ie->load_error == EVAS_LOAD_ERROR_NONE))
|
||||
else if ((!im->tex))
|
||||
{
|
||||
ie->load_error = evas_cache_image_load_data(ie);
|
||||
if (ie->load_error == EVAS_LOAD_ERROR_NONE)
|
||||
evas_cache_image_load_data(ie);
|
||||
im->tex = evas_gl_common_texture_rgb_a_pair_new(gc, im->im);
|
||||
evas_cache_image_unload_data(ie);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue