server: check backend support for timelines

References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4848
Simon Ser 2 months ago committed by Alexander Orzechowski
parent 7f1cd0b73b
commit 17e2e52c6d

@ -251,7 +251,8 @@ bool server_init(struct sway_server *server) {
} }
} }
if (wlr_renderer_get_drm_fd(server->renderer) >= 0 && 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_linux_drm_syncobj_manager_v1_create(server->wl_display, 1,
wlr_renderer_get_drm_fd(server->renderer)); wlr_renderer_get_drm_fd(server->renderer));
} }

Loading…
Cancel
Save