From 52c379f4b25cd71c79ec2ab19c14e5aa9ba9cbe7 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Tue, 6 Jun 2017 16:15:22 -0500 Subject: [PATCH] Remove some duplicate operations the native surface version was set outside of the switch statement, so we don't need to re-set it to the same thing here. --- src/bin/e_pixmap.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/bin/e_pixmap.c b/src/bin/e_pixmap.c index f1c07442a..0d68b6951 100644 --- a/src/bin/e_pixmap.c +++ b/src/bin/e_pixmap.c @@ -721,7 +721,6 @@ e_pixmap_native_surface_init(E_Pixmap *cp, Evas_Native_Surface *ns) if (cp->buffer->dmabuf_buffer) { ns->type = EVAS_NATIVE_SURFACE_WL_DMABUF; - ns->version = EVAS_NATIVE_SURFACE_VERSION; ns->data.wl_dmabuf.attr = &cp->buffer->dmabuf_buffer->attributes; ns->data.wl_dmabuf.resource = cp->buffer->resource; @@ -731,7 +730,6 @@ e_pixmap_native_surface_init(E_Pixmap *cp, Evas_Native_Surface *ns) else if (!cp->buffer->shm_buffer) { ns->type = EVAS_NATIVE_SURFACE_WL; - ns->version = EVAS_NATIVE_SURFACE_VERSION; ns->data.wl.legacy_buffer = cp->buffer->resource; ret = EINA_TRUE; }