From b51b9b10405d568c4ffb5fc6a2a8508b6860d3ea Mon Sep 17 00:00:00 2001 From: raster Date: Mon, 14 Nov 2011 09:27:29 +0000 Subject: [PATCH] fix dyn image data return due to change i made a little bit ago git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@65159 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/modules/engines/gl_x11/evas_engine.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/engines/gl_x11/evas_engine.c b/src/modules/engines/gl_x11/evas_engine.c index fe2eba3..38e0c13 100644 --- a/src/modules/engines/gl_x11/evas_engine.c +++ b/src/modules/engines/gl_x11/evas_engine.c @@ -2415,8 +2415,9 @@ eng_image_data_get(void *data, void *image, int to_write, DATA32 **image_data, i if (!im->tex->pt->dyn.data) { - im->tex->pt->dyn.img = NULL; + if (err) *err = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; GLERR(__FUNCTION__, __FILE__, __LINE__, ""); + return im; } im->tex->pt->dyn.checked_out++; -- 2.7.4