evas: Fix a crash in emotion with GL

Ooops! When mapping for writing we can't use the same code
path as when tofree is true. This restores the path for image
writing. This basically fixes rage with GL engine.

See also 45c8e5e983
This commit is contained in:
Jean-Philippe Andre 2017-07-20 16:43:52 +09:00
parent 05e3e450e5
commit 7bb14727af
1 changed files with 1 additions and 1 deletions

View File

@ -876,7 +876,7 @@ eng_image_data_get(void *engine, void *image, int to_write, DATA32 **image_data,
if (error != EVAS_LOAD_ERROR_NONE)
{
if (tofree)
if (tofree && !to_write)
goto rotate_image;
}