forked from enlightenment/efl
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:
parent
b5f8966fbe
commit
d63cc52c58
|
@ -1076,6 +1076,7 @@ eng_image_data_preload_request(void *data, void *image, const Eo *target)
|
||||||
re->window_use(re->software.ob);
|
re->window_use(re->software.ob);
|
||||||
gl_context = re->window_gl_context_get(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);
|
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);
|
evas_gl_preload_target_register(gim->tex, (Eo*) target);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue