From 490af011620eda38f787a263990417aabd03eac4 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Thu, 15 Oct 2020 17:29:32 +0800 Subject: [PATCH] add clean&zero at PhysicalDevice::GetFormatProperties function --- inc/hgl/graph/vulkan/VKPhysicalDevice.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc/hgl/graph/vulkan/VKPhysicalDevice.h b/inc/hgl/graph/vulkan/VKPhysicalDevice.h index 4a452dc7..735212ff 100644 --- a/inc/hgl/graph/vulkan/VKPhysicalDevice.h +++ b/inc/hgl/graph/vulkan/VKPhysicalDevice.h @@ -67,6 +67,8 @@ public: { VkFormatProperties fp; + hgl_zero(fp); + vkGetPhysicalDeviceFormatProperties(physical_device,format,&fp); return fp;