mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Merge pull request #251 from acrisci/bug/null-buffer-commit
bug: null buffer commit detection
This commit is contained in:
		
						commit
						b9aee31f58
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -347,8 +347,13 @@ static void wlr_surface_commit_pending(struct wlr_surface *surface) {
 | 
			
		|||
	int32_t oldw = surface->current->buffer_width;
 | 
			
		||||
	int32_t oldh = surface->current->buffer_height;
 | 
			
		||||
 | 
			
		||||
	bool null_buffer_commit =
 | 
			
		||||
		(surface->pending->invalid & WLR_SURFACE_INVALID_BUFFER &&
 | 
			
		||||
		 surface->pending->buffer == NULL);
 | 
			
		||||
 | 
			
		||||
	wlr_surface_move_state(surface, surface->pending, surface->current);
 | 
			
		||||
	if (!surface->current->buffer) {
 | 
			
		||||
 | 
			
		||||
	if (null_buffer_commit) {
 | 
			
		||||
		surface->texture->valid = false;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue