diff options
author | Simon Ser <contact@emersion.fr> | 2023-04-06 21:43:43 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-04-06 21:43:43 +0200 |
commit | ec5135cb0904396fa43df6f6c9a383a7900e4224 (patch) | |
tree | ad1ba63df61766f0549b8590a231c9f08abcd3ea | |
parent | 079ff9e6fbe6c755d3b1d5ac3ec0e9eb9ddc02a3 (diff) |
scene: check wlr_output_is_direct_scanout_allowed()
-rw-r--r-- | types/scene/wlr_scene.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |