evas/gl: Update texture when preload is cancelled.
authorMinkyoung Kim <mer.kim@samsung.com>
Thu, 10 Dec 2015 07:04:57 +0000 (16:04 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 10 Dec 2015 07:04:57 +0000 (16:04 +0900)
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

src/modules/evas/engines/gl_generic/evas_engine.c

index 03429d2..d7ea450 100644 (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);
 }