From ec5135cb0904396fa43df6f6c9a383a7900e4224 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 6 Apr 2023 21:43:43 +0200 Subject: scene: check wlr_output_is_direct_scanout_allowed() --- types/scene/wlr_scene.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/scene/wlr_scene.c b/types/scene/wlr_scene.c index 953fb2c2..c33461f1 100644 --- a/types/scene/wlr_scene.c +++ b/types/scene/wlr_scene.c @@ -1490,6 +1490,10 @@ static bool scene_buffer_can_consider_direct_scanout(struct wlr_scene_buffer *bu return false; } + if (!wlr_output_is_direct_scanout_allowed(scene_output->output)) { + return false; + } + struct wlr_fbox default_box = {0}; if (buffer->transform & WL_OUTPUT_TRANSFORM_90) { default_box.width = buffer->buffer->height; -- cgit v1.2.3