forked from enlightenment/efl
Ecore evas: Fix crash after image_data_set
In some cases, the image has a format different from RGBA, so image_data_set will be invalid as the new data is expected to be RGBA. This happened with ETC2 images.
This commit is contained in:
parent
022ab7f2e6
commit
c2f4e38cf1
|
@ -989,6 +989,8 @@ _ipc_server_data(void *data, int type EINA_UNUSED, void *event)
|
|||
_extnbuf_free(extn->b[pn].obuf);
|
||||
extn->b[pn].obuf = NULL;
|
||||
}
|
||||
|
||||
evas_object_image_colorspace_set(bdata->image, EVAS_COLORSPACE_ARGB8888);
|
||||
if (extn->b[n].buf)
|
||||
{
|
||||
data2 = _extnbuf_data_get(extn->b[n].buf, &w, &h, NULL);
|
||||
|
|
Loading…
Reference in New Issue