forked from enlightenment/enlightenment
e comp - set alpha after setting native surface to avoid random crash
i noticed a crash on texture update with a previous garbage image data ptr set before becoming a native suttface and so setting alpha would cause a texture upload from a garbage pointer, so set native surface then set alpha on or off so the data ptr is no longer used. @fix
This commit is contained in:
parent
82afc08c39
commit
82c6bdf031
|
@ -3751,8 +3751,8 @@ e_comp_object_native_surface_set(Evas_Object *obj, Eina_Bool set)
|
|||
evas_object_image_native_surface_set(cw->obj, set && (!cw->blanked) ? (cw->ns ?: &ns) : NULL);
|
||||
EINA_LIST_FOREACH(cw->obj_mirror, l, o)
|
||||
{
|
||||
evas_object_image_alpha_set(o, !!cw->ns ? 1 : cw->ec->argb);
|
||||
evas_object_image_native_surface_set(o, set ? (cw->ns ?: &ns) : NULL);
|
||||
evas_object_image_alpha_set(o, !!cw->ns ? 1 : cw->ec->argb);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue