mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-04 20:55:58 +01:00
scene: check wlr_output_is_direct_scanout_allowed()
This commit is contained in:
parent
079ff9e6fb
commit
ec5135cb09
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue