From 8568b2a6fca1c62958bc267c152a396173434058 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 10 Oct 2024 16:30:46 +0200 Subject: [PATCH] scene: use backend-wide timeline feature flag --- types/scene/wlr_scene.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/scene/wlr_scene.c b/types/scene/wlr_scene.c index 986d4c69..16ed63a1 100644 --- a/types/scene/wlr_scene.c +++ b/types/scene/wlr_scene.c @@ -1607,7 +1607,8 @@ struct wlr_scene_output *wlr_scene_output_create(struct wlr_scene *scene, } int drm_fd = wlr_backend_get_drm_fd(output->backend); - if (drm_fd >= 0 && output->timeline && output->renderer != NULL && output->renderer->features.timeline) { + if (drm_fd >= 0 && output->backend->features.timeline && + output->renderer != NULL && output->renderer->features.timeline) { scene_output->in_timeline = wlr_drm_syncobj_timeline_create(drm_fd); if (scene_output->in_timeline == NULL) { return NULL;