1
0
Эх сурвалжийг харах

gpu: MSVC buildfix for Vulkan device property struct initialization

Ethan Lee 1 сар өмнө
parent
commit
db9676875e

+ 2 - 2
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 =