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.
This commit is contained in:
parent
51da93da28
commit
132a77c682
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue