aboutsummaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-05-23 20:31:42 +0200
committerSimon Ser <contact@emersion.fr>2023-05-23 20:31:42 +0200
commit09f5a005854094a67e9408f0f85cb28af0b9c987 (patch)
treecd8678636984304ba7ee20a17e1ec97f7324b84e /render
parent5f4a35290d5e2a7382dde4d893fc36c44cb0e1fd (diff)
render/vulkan: fix YCbCr format check in vulkan_texture_from_pixels()
Diffstat (limited to 'render')
-rw-r--r--render/vulkan/texture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/render/vulkan/texture.c b/render/vulkan/texture.c
index f87341ac..296afc25 100644
--- a/render/vulkan/texture.c
+++ b/render/vulkan/texture.c
@@ -268,7 +268,7 @@ static struct wlr_texture *vulkan_texture_from_pixels(
const struct wlr_vk_format_props *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);
wlr_log(WLR_ERROR, "Unsupported pixel format %s (0x%08"PRIX32")",
format_name, drm_fmt);