mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
rootston: add -D flag to enable damage tracking debugging
This commit is contained in:
parent
4555fc8a54
commit
140bc19476
3 changed files with 12 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue