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)
|
evas_gl_common_image_update(Evas_Engine_GL_Context *gc, Evas_GL_Image *im)
|
||||||
{
|
{
|
||||||
Image_Entry *ie;
|
Image_Entry *ie;
|
||||||
|
|
||||||
if (!im->im) return;
|
if (!im->im) return;
|
||||||
ie = &im->im->cache_entry;
|
ie = &im->im->cache_entry;
|
||||||
evas_gl_common_image_alloc_ensure(im);
|
evas_gl_common_image_alloc_ensure(im);
|
||||||
|
@ -809,37 +808,33 @@ evas_gl_common_image_update(Evas_Engine_GL_Context *gc, Evas_GL_Image *im)
|
||||||
#ifdef EVAS_CSERVE2
|
#ifdef EVAS_CSERVE2
|
||||||
if (evas_cache2_image_cached(ie))
|
if (evas_cache2_image_cached(ie))
|
||||||
{
|
{
|
||||||
ie->load_error = evas_cache2_image_load_data(ie);
|
evas_cache2_image_load_data(ie);
|
||||||
if (ie->load_error == EVAS_LOAD_ERROR_NONE)
|
evas_gl_common_texture_update(im->tex, im->im);
|
||||||
evas_gl_common_texture_update(im->tex, im->im);
|
|
||||||
evas_cache2_image_unload_data(ie);
|
evas_cache2_image_unload_data(ie);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
ie->load_error = evas_cache_image_load_data(ie);
|
evas_cache_image_load_data(ie);
|
||||||
if (ie->load_error == EVAS_LOAD_ERROR_NONE)
|
evas_gl_common_texture_update(im->tex, im->im);
|
||||||
evas_gl_common_texture_update(im->tex, im->im);
|
|
||||||
evas_cache_image_unload_data(ie);
|
evas_cache_image_unload_data(ie);
|
||||||
}
|
}
|
||||||
ie->flags.updated_data = 0;
|
ie->flags.updated_data = 0;
|
||||||
}
|
}
|
||||||
else if ((!im->tex) && (ie->load_error == EVAS_LOAD_ERROR_NONE))
|
if (!im->tex)
|
||||||
{
|
{
|
||||||
#ifdef EVAS_CSERVE2
|
#ifdef EVAS_CSERVE2
|
||||||
if (evas_cache2_image_cached(ie))
|
if (evas_cache2_image_cached(ie))
|
||||||
{
|
{
|
||||||
ie->load_error = evas_cache2_image_load_data(ie);
|
evas_cache2_image_load_data(ie);
|
||||||
if (ie->load_error == EVAS_LOAD_ERROR_NONE)
|
im->tex = evas_gl_common_texture_new(gc, im->im);
|
||||||
im->tex = evas_gl_common_texture_new(gc, im->im);
|
|
||||||
evas_cache2_image_unload_data(ie);
|
evas_cache2_image_unload_data(ie);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
ie->load_error = evas_cache_image_load_data(ie);
|
evas_cache_image_load_data(ie);
|
||||||
if (ie->load_error == EVAS_LOAD_ERROR_NONE)
|
im->tex = evas_gl_common_texture_new(gc, im->im);
|
||||||
im->tex = evas_gl_common_texture_new(gc, im->im);
|
|
||||||
evas_cache_image_unload_data(ie);
|
evas_cache_image_unload_data(ie);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -849,16 +844,14 @@ evas_gl_common_image_update(Evas_Engine_GL_Context *gc, Evas_GL_Image *im)
|
||||||
case EVAS_COLORSPACE_ETC1_ALPHA:
|
case EVAS_COLORSPACE_ETC1_ALPHA:
|
||||||
if ((im->tex) && (im->dirty))
|
if ((im->tex) && (im->dirty))
|
||||||
{
|
{
|
||||||
ie->load_error = evas_cache_image_load_data(ie);
|
evas_cache_image_load_data(ie);
|
||||||
if (ie->load_error == EVAS_LOAD_ERROR_NONE)
|
evas_gl_common_texture_rgb_a_pair_update(im->tex, im->im);
|
||||||
evas_gl_common_texture_rgb_a_pair_update(im->tex, im->im);
|
|
||||||
evas_cache_image_unload_data(ie);
|
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);
|
evas_cache_image_load_data(ie);
|
||||||
if (ie->load_error == EVAS_LOAD_ERROR_NONE)
|
im->tex = evas_gl_common_texture_rgb_a_pair_new(gc, im->im);
|
||||||
im->tex = evas_gl_common_texture_rgb_a_pair_new(gc, im->im);
|
|
||||||
evas_cache_image_unload_data(ie);
|
evas_cache_image_unload_data(ie);
|
||||||
}
|
}
|
||||||
im->dirty = 0;
|
im->dirty = 0;
|
||||||
|
|
Loading…
Reference in New Issue