mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Fix damage tracking debug mode
This commit is contained in:
		
							parent
							
								
									12dd9544f9
								
							
						
					
					
						commit
						8c2b4244a1
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
					@ -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;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue