From db9676875e26004f2701d754b71ef08603201cd2 Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Fri, 30 Jan 2026 09:40:24 -0500 Subject: [PATCH] gpu: MSVC buildfix for Vulkan device property struct initialization --- src/gpu/vulkan/SDL_gpu_vulkan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gpu/vulkan/SDL_gpu_vulkan.c b/src/gpu/vulkan/SDL_gpu_vulkan.c index 1064311987..f07cd675e5 100644 --- a/src/gpu/vulkan/SDL_gpu_vulkan.c +++ b/src/gpu/vulkan/SDL_gpu_vulkan.c @@ -11882,8 +11882,8 @@ static bool VULKAN_INTERNAL_GetDeviceRank( VkPhysicalDeviceType deviceType; if (physicalDeviceExtensions->KHR_driver_properties || physicalDeviceExtensions->MSFT_layered_driver) { VkPhysicalDeviceProperties2KHR physicalDeviceProperties; - VkPhysicalDeviceDriverPropertiesKHR physicalDeviceDriverProperties; - VkPhysicalDeviceLayeredDriverPropertiesMSFT physicalDeviceLayeredDriverProperties; + VkPhysicalDeviceDriverPropertiesKHR physicalDeviceDriverProperties = { 0 }; + VkPhysicalDeviceLayeredDriverPropertiesMSFT physicalDeviceLayeredDriverProperties = { 0 }; void** ppNext = &physicalDeviceProperties.pNext; physicalDeviceProperties.sType =