rootston: add -D flag to enable damage tracking debugging

This commit is contained in:
emersion 2018-03-26 17:34:46 -04:00
parent 4555fc8a54
commit 140bc19476
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
3 changed files with 12 additions and 4 deletions

View file

@ -486,8 +486,9 @@ static void render_output(struct roots_output *output) {
goto renderer_end;
}
// Uncomment this line to debug damage tracking
//wlr_renderer_clear(renderer, (float[]){1, 1, 0, 0});
if (server->config->debug_damage_tracking) {
wlr_renderer_clear(renderer, (float[]){1, 1, 0, 0});
}
int nrects;
pixman_box32_t *rects = pixman_region32_rectangles(&damage, &nrects);