wlr_scene: Clear damage ring on scale change

If we were trying to change the scale in wlr_scene_output_build_state,
we would be using incorrect damage
This commit is contained in:
Alexander Orzechowski 2023-06-13 20:51:20 -04:00 committed by Simon Ser
parent 96b95bf775
commit 61667404ce

View file

@ -1590,6 +1590,10 @@ bool wlr_scene_output_build_state(struct wlr_scene_output *scene_output,
} }
if (state->committed & WLR_OUTPUT_STATE_SCALE) { if (state->committed & WLR_OUTPUT_STATE_SCALE) {
if (render_data.scale != state->scale) {
wlr_damage_ring_add_whole(&scene_output->damage_ring);
}
render_data.scale = state->scale; render_data.scale = state->scale;
} }