summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/evas/engines')
-rw-r--r--src/modules/evas/engines/software_generic/evas_engine.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/modules/evas/engines/software_generic/evas_engine.c b/src/modules/evas/engines/software_generic/evas_engine.c
index 6dd22018da..9efd35efcf 100644
--- a/src/modules/evas/engines/software_generic/evas_engine.c
+++ b/src/modules/evas/engines/software_generic/evas_engine.c
@@ -578,21 +578,7 @@ eng_image_native_set(void *data EINA_UNUSED, void *image, void *native EINA_UNUS
578 Evas_Native_Surface *ns = native; 578 Evas_Native_Surface *ns = native;
579 Image_Entry *im = image, *im2 = NULL; 579 Image_Entry *im = image, *im2 = NULL;
580 580
581 if (!im) 581 if (!im || !ns) return im;
582 {
583 if ((ns) && (ns->data.x11.visual))
584 {
585 im = evas_cache_image_data(evas_common_image_cache_get(),
586 im->w, im->h,
587 ns->data.x11.visual, 1,
588 EVAS_COLORSPACE_ARGB8888);
589 return im;
590 }
591 else
592 return NULL;
593 }
594
595 if ((!ns) && (!im)) return im;
596 582
597 if (!ns) return im; 583 if (!ns) return im;
598 584