mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	wlr-surface: destroy texture on null buffer commit
This commit is contained in:
		
							parent
							
								
									d1dd0a6970
								
							
						
					
					
						commit
						0e7d13fab7
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -406,7 +406,8 @@ static void wlr_surface_commit_pending(struct wlr_surface *surface) {
 | 
				
			||||||
	wlr_surface_move_state(surface, surface->pending, surface->current);
 | 
						wlr_surface_move_state(surface, surface->pending, surface->current);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (null_buffer_commit) {
 | 
						if (null_buffer_commit) {
 | 
				
			||||||
		surface->texture->valid = false;
 | 
							wlr_texture_destroy(surface->texture);
 | 
				
			||||||
 | 
							surface->texture = NULL;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	bool reupload_buffer = oldw != surface->current->buffer_width ||
 | 
						bool reupload_buffer = oldw != surface->current->buffer_width ||
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue