diff --git a/types/scene/wlr_scene.c b/types/scene/wlr_scene.c index 116e28c7..cd03ea37 100644 --- a/types/scene/wlr_scene.c +++ b/types/scene/wlr_scene.c @@ -1766,6 +1766,9 @@ bool wlr_scene_output_build_state(struct wlr_scene_output *scene_output, struct render_list_entry *list_data = list_con.render_list->data; int list_len = list_con.render_list->size / sizeof(*list_data); + wlr_damage_ring_set_bounds(&scene_output->damage_ring, + render_data.trans_width, render_data.trans_height); + if (debug_damage == WLR_SCENE_DEBUG_DAMAGE_RERENDER) { wlr_damage_ring_add_whole(&scene_output->damage_ring); } @@ -1830,9 +1833,6 @@ bool wlr_scene_output_build_state(struct wlr_scene_output *scene_output, return true; } - wlr_damage_ring_set_bounds(&scene_output->damage_ring, - render_data.trans_width, render_data.trans_height); - struct wlr_swapchain *swapchain = options->swapchain; if (!swapchain) { if (!wlr_output_configure_primary_swapchain(output, state, &output->swapchain)) {