evas/gl: Update texture when preload is cancelled.

Summary:
When preload is cancelled before finishing loading,
should reload the image data and update the texture during rendering object.
So, force texture to be updated on first drawing time.
(It should be guaranteed that preload image object is hidden before preload done.)

Test Plan: Local tests

Reviewers: jpeg

Reviewed By: jpeg

Subscribers: eunue, jiin.moon, wonsik, cedric, spacegrapher

Differential Revision: https://phab.enlightenment.org/D3416
This commit is contained in:
Minkyoung Kim 2015-12-10 16:04:57 +09:00 committed by Jean-Philippe Andre
parent b5f8966fbe
commit d63cc52c58
1 changed files with 1 additions and 0 deletions

View File

@ -1076,6 +1076,7 @@ eng_image_data_preload_request(void *data, void *image, const Eo *target)
re->window_use(re->software.ob);
gl_context = re->window_gl_context_get(re->software.ob);
gim->tex = evas_gl_common_texture_new(gl_context, gim->im, EINA_FALSE);
im->cache_entry.flags.updated_data = 1;
}
evas_gl_preload_target_register(gim->tex, (Eo*) target);
}