diff options
Diffstat (limited to 'render/vulkan')
-rw-r--r-- | render/vulkan/texture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/render/vulkan/texture.c b/render/vulkan/texture.c index 296afc25..75679ecc 100644 --- a/render/vulkan/texture.c +++ b/render/vulkan/texture.c @@ -681,7 +681,7 @@ static struct wlr_vk_texture *vulkan_texture_from_dmabuf( .components.r = VK_COMPONENT_SWIZZLE_IDENTITY, .components.g = VK_COMPONENT_SWIZZLE_IDENTITY, .components.b = VK_COMPONENT_SWIZZLE_IDENTITY, - .components.a = texture->has_alpha + .components.a = texture->has_alpha || fmt->format.is_ycbcr ? VK_COMPONENT_SWIZZLE_IDENTITY : VK_COMPONENT_SWIZZLE_ONE, |