mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	render/pixman: fix texture_is_opaque()
A texture is opaque when it does *not* have alpha. Fixes https://github.com/swaywm/wlroots/issues/2907
This commit is contained in:
		
							parent
							
								
									c1b27cc499
								
							
						
					
					
						commit
						a362d21d6b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -48,7 +48,7 @@ static struct wlr_pixman_texture *get_texture(
 | 
			
		|||
 | 
			
		||||
static bool texture_is_opaque(struct wlr_texture *wlr_texture) {
 | 
			
		||||
	struct wlr_pixman_texture *texture = get_texture(wlr_texture);
 | 
			
		||||
	return texture->format_info->has_alpha;
 | 
			
		||||
	return !texture->format_info->has_alpha;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void texture_destroy(struct wlr_texture *wlr_texture) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue