Merge pull request #1112 from emersion/fix-debug-damage-tracking

Fix damage tracking debug mode
This commit is contained in:
Drew DeVault 2018-07-04 08:35:18 -07:00 committed by GitHub
commit 5d1c5ff80b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -517,6 +517,13 @@ static void render_output(struct roots_output *output) {
renderer_end: renderer_end:
wlr_renderer_scissor(renderer, NULL); wlr_renderer_scissor(renderer, NULL);
wlr_renderer_end(renderer); wlr_renderer_end(renderer);
if (server->config->debug_damage_tracking) {
int width, height;
wlr_output_transformed_resolution(wlr_output, &width, &height);
pixman_region32_union_rect(&damage, &damage, 0, 0, width, height);
}
if (!wlr_output_damage_swap_buffers(output->damage, &now, &damage)) { if (!wlr_output_damage_swap_buffers(output->damage, &now, &damage)) {
goto damage_finish; goto damage_finish;
} }