From 06c0b0a204e36f90e7e1c78d8e67035620fd5516 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Mon, 19 Jun 2023 18:00:26 -0400 Subject: [PATCH] render/vulkan: Initialize to fix compilation error --- render/vulkan/renderer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/render/vulkan/renderer.c b/render/vulkan/renderer.c index 374d63843..76da79fe1 100644 --- a/render/vulkan/renderer.c +++ b/render/vulkan/renderer.c @@ -2388,7 +2388,7 @@ struct wlr_vk_pipeline_layout *get_or_create_pipeline_layout( pipeline_layout->key = *key; VkResult res; - VkFilter filter; + VkFilter filter = VK_FILTER_LINEAR; switch (key->filter_mode) { case WLR_SCALE_FILTER_BILINEAR: filter = VK_FILTER_LINEAR;