mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	render/vulkan: fix YCbCr format check in vulkan_texture_from_pixels()
This commit is contained in:
		
							parent
							
								
									5f4a35290d
								
							
						
					
					
						commit
						09f5a00585
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -268,7 +268,7 @@ static struct wlr_texture *vulkan_texture_from_pixels(
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	const struct wlr_vk_format_props *fmt =
 | 
						const struct wlr_vk_format_props *fmt =
 | 
				
			||||||
		vulkan_format_props_from_drm(renderer->dev, drm_fmt);
 | 
							vulkan_format_props_from_drm(renderer->dev, drm_fmt);
 | 
				
			||||||
	if (fmt == NULL && fmt->format.is_ycbcr) {
 | 
						if (fmt == NULL || fmt->format.is_ycbcr) {
 | 
				
			||||||
		char *format_name = drmGetFormatName(drm_fmt);
 | 
							char *format_name = drmGetFormatName(drm_fmt);
 | 
				
			||||||
		wlr_log(WLR_ERROR, "Unsupported pixel format %s (0x%08"PRIX32")",
 | 
							wlr_log(WLR_ERROR, "Unsupported pixel format %s (0x%08"PRIX32")",
 | 
				
			||||||
			format_name, drm_fmt);
 | 
								format_name, drm_fmt);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue