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:
Jean-Philippe Andre 2014-05-09 18:24:05 +09:00
parent 022ab7f2e6
commit c2f4e38cf1
1 changed files with 2 additions and 0 deletions

View File

@ -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);