mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Don't crash if there is no damage during render
This commit is contained in:
		
							parent
							
								
									029b99b482
								
							
						
					
					
						commit
						db7638a0e5
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -1018,7 +1018,7 @@ void output_render(struct render_context *ctx) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (!pixman_region32_not_empty(damage)) {
 | 
						if (!pixman_region32_not_empty(damage)) {
 | 
				
			||||||
		// Output isn't damaged but needs buffer swap
 | 
							// Output isn't damaged but needs buffer swap
 | 
				
			||||||
		goto renderer_end;
 | 
							return;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (debug.damage == DAMAGE_HIGHLIGHT) {
 | 
						if (debug.damage == DAMAGE_HIGHLIGHT) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue