server: check backend support for timelines

References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4848
master
Simon Ser 2 months ago committed by itycodes
parent f9f845eccb
commit 92da87ebb1

@ -254,7 +254,8 @@ bool server_init(struct sway_server *server) {
}
}
if (wlr_renderer_get_drm_fd(server->renderer) >= 0 &&
server->renderer->features.timeline) {
server->renderer->features.timeline &&
server->backend->features.timeline) {
wlr_linux_drm_syncobj_manager_v1_create(server->wl_display, 1,
wlr_renderer_get_drm_fd(server->renderer));
}

Loading…
Cancel
Save