summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_drm/evas_engine.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/evas/engines/gl_drm/evas_engine.c')
-rw-r--r--src/modules/evas/engines/gl_drm/evas_engine.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/modules/evas/engines/gl_drm/evas_engine.c b/src/modules/evas/engines/gl_drm/evas_engine.c
index ed6a8e7b89..6877842008 100644
--- a/src/modules/evas/engines/gl_drm/evas_engine.c
+++ b/src/modules/evas/engines/gl_drm/evas_engine.c
@@ -1223,19 +1223,14 @@ eng_image_native_set(void *engine, void *image, void *native)
1223 } 1223 }
1224 } 1224 }
1225 1225
1226 if ((!ns) && (!img->native.data)) return img;
1227
1228 evas_outbuf_use(ob); 1226 evas_outbuf_use(ob);
1229 1227
1230 if (img && img->native.data) 1228 if (!ns)
1231 { 1229 {
1232 if (img->native.func.free) 1230 glsym_evas_gl_common_image_free(img);
1233 img->native.func.free(img); 1231 return NULL;
1234 glsym_evas_gl_common_image_native_disable(img);
1235 } 1232 }
1236 1233
1237 if (!ns) return img;
1238
1239 if (ns->type == EVAS_NATIVE_SURFACE_WL_DMABUF) 1234 if (ns->type == EVAS_NATIVE_SURFACE_WL_DMABUF)
1240 { 1235 {
1241 wlid = wl_buf; 1236 wlid = wl_buf;