summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-11-09 16:06:42 -0600
committerDerek Foreman <derekf@osg.samsung.com>2017-11-09 16:06:42 -0600
commit132a77c6827b91eba3fa3094afd99ef9efa8e058 (patch)
treeb5a13fcaaf8f2dcfbe1a97d5b21d05961a89f66d /src
parent51da93da28bd52be2a29652c8789cc3f3588c7b8 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_display.c2
1 files changed, 1 insertions, 1 deletions
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
276 ewd->wl.shm = 276 ewd->wl.shm =
277 wl_registry_bind(registry, id, &wl_shm_interface, 1); 277 wl_registry_bind(registry, id, &wl_shm_interface, 1);
278 } 278 }
279 else if (!strcmp(interface, "zwp_linux_dmabuf_v1")) 279 else if (!strcmp(interface, "zwp_linux_dmabuf_v1") && (version >= 2))
280 { 280 {
281 ewd->wl.dmabuf = 281 ewd->wl.dmabuf =
282 wl_registry_bind(registry, id, &zwp_linux_dmabuf_v1_interface, 2); 282 wl_registry_bind(registry, id, &zwp_linux_dmabuf_v1_interface, 2);