summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/wayland_egl/evas_engine.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/evas/engines/wayland_egl/evas_engine.c')
-rw-r--r--src/modules/evas/engines/wayland_egl/evas_engine.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/modules/evas/engines/wayland_egl/evas_engine.c b/src/modules/evas/engines/wayland_egl/evas_engine.c
index 4f22f8a787..e26205e304 100644
--- a/src/modules/evas/engines/wayland_egl/evas_engine.c
+++ b/src/modules/evas/engines/wayland_egl/evas_engine.c
@@ -1083,18 +1083,14 @@ eng_image_native_set(void *engine, void *image, void *native)
1083 } 1083 }
1084 } 1084 }
1085 1085
1086 if ((!ns) && (!img->native.data)) return img;
1087
1088 eng_window_use(ob); 1086 eng_window_use(ob);
1089 1087
1090 if (img->native.data) 1088 if (!ns)
1091 { 1089 {
1092 if (img->native.func.free) 1090 glsym_evas_gl_common_image_free(img);
1093 img->native.func.free(img); 1091 return NULL;
1094 glsym_evas_gl_common_image_native_disable(img);
1095 } 1092 }
1096 1093
1097 if (!ns) return img;
1098 1094
1099 if (ns->type == EVAS_NATIVE_SURFACE_WL) 1095 if (ns->type == EVAS_NATIVE_SURFACE_WL)
1100 { 1096 {