evas/canvas: Make sure rendering finishes before image_data_set() and image_native_set()

SVN revision: 81563
This commit is contained in:
Leandro Pereira 2012-12-21 17:30:44 +00:00
parent cafaecfce1
commit 6516727164
1 changed files with 4 additions and 0 deletions

View File

@ -1175,6 +1175,8 @@ _image_data_set(Eo *eo_obj, void *_pd, va_list *list)
void *data = va_arg(*list, void *);
evas_render_rendering_wait(obj->layer->evas);
_evas_object_image_cleanup(eo_obj, obj, o);
p_data = o->engine_data;
if (data)
@ -2215,6 +2217,8 @@ _image_native_surface_set(Eo *eo_obj, void *_pd, va_list *list)
Evas_Object_Protected_Data *obj = eo_data_get(eo_obj, EVAS_OBJ_CLASS);
Evas_Object_Image *o = _pd;
evas_render_rendering_wait(obj->layer->evas);
_evas_object_image_cleanup(eo_obj, obj, o);
if (!obj->layer->evas->engine.func->image_native_set) return;
if ((surf) &&