derekf pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=132a77c6827b91eba3fa3094afd99ef9efa8e058

commit 132a77c6827b91eba3fa3094afd99ef9efa8e058
Author: Derek Foreman <der...@osg.samsung.com>
Date:   Thu Nov 9 16:06:42 2017 -0600

    ecore_wl2: Discard too-old dmabuf support
    
    We need at least version 2 for create_immed, so don't even bind the
    global if it's useless to us.
    
    This will also stop us from trying to use dmabuf (and getting killed by
    the compositor) on older compositors that don't support the version we
    need - we'll just use wl_shm instead when this pointer is NULL.
---
 src/lib/ecore_wl2/ecore_wl2_display.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/ecore_wl2/ecore_wl2_display.c 
b/src/lib/ecore_wl2/ecore_wl2_display.c
index 1a2a24ef55..eb7252a80e 100644
--- a/src/lib/ecore_wl2/ecore_wl2_display.c
+++ b/src/lib/ecore_wl2/ecore_wl2_display.c
@@ -276,7 +276,7 @@ _cb_global_add(void *data, struct wl_registry *registry, 
unsigned int id, const
         ewd->wl.shm =
           wl_registry_bind(registry, id, &wl_shm_interface, 1);
      }
-   else if (!strcmp(interface, "zwp_linux_dmabuf_v1"))
+   else if (!strcmp(interface, "zwp_linux_dmabuf_v1") && (version >= 2))
      {
         ewd->wl.dmabuf =
           wl_registry_bind(registry, id, &zwp_linux_dmabuf_v1_interface, 2);

-- 


Reply via email to