forked from enlightenment/efl
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:
parent
05e3e450e5
commit
7bb14727af
|
@ -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 (error != EVAS_LOAD_ERROR_NONE)
|
||||||
{
|
{
|
||||||
if (tofree)
|
if (tofree && !to_write)
|
||||||
goto rotate_image;
|
goto rotate_image;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue