It seems this was needed for renderer.bind_wl_display. But only in the X11 and winit backends. Unless there's some less obvious reason to use the use_system_lib feature, it seems undesirable and avoidable.
This uses WlDrmState to provide wl_drm on those backends instead.
If I hide the dmabuf global, Mesa EGL clients seem to work fine using wl_drm here with both the winit and x11 backends.
It seems this was needed for
renderer.bind_wl_display
. But only in the X11 and winit backends. Unless there's some less obvious reason to use theuse_system_lib
feature, it seems undesirable and avoidable.This uses
WlDrmState
to providewl_drm
on those backends instead.If I hide the dmabuf global, Mesa EGL clients seem to work fine using
wl_drm
here with both the winit and x11 backends.