From 57f2cabc9b10aeef0aed3fbe32f858409286ead7 Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 12 Jul 2018 13:29:58 +0100 Subject: [PATCH] Initialize device properties that might not all be filled out to 0 --- renderdoc/driver/vulkan/wrappers/vk_device_funcs.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/renderdoc/driver/vulkan/wrappers/vk_device_funcs.cpp b/renderdoc/driver/vulkan/wrappers/vk_device_funcs.cpp index d8749eb1e..05bccef69 100644 --- a/renderdoc/driver/vulkan/wrappers/vk_device_funcs.cpp +++ b/renderdoc/driver/vulkan/wrappers/vk_device_funcs.cpp @@ -664,9 +664,9 @@ bool WrappedVulkan::Serialise_vkEnumeratePhysicalDevices(SerialiserType &ser, Vk uint32_t memIdxMap[VK_MAX_MEMORY_TYPES] = {0}; // not used at the moment but useful for reference and might be used // in the future - VkPhysicalDeviceProperties physProps; - VkPhysicalDeviceMemoryProperties memProps; - VkPhysicalDeviceFeatures physFeatures; + VkPhysicalDeviceProperties physProps = {}; + VkPhysicalDeviceMemoryProperties memProps = {}; + VkPhysicalDeviceFeatures physFeatures = {}; uint32_t queueCount = 0; VkQueueFamilyProperties queueProps[16] = {};