From: Mikko Rasa Date: Thu, 9 Dec 2021 09:48:25 +0000 (+0200) Subject: Initialize members of VulkanVertexSetup X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=5e3b0dfd3fa65eb8ff6bb5ee4543179cc84d0b56;p=libs%2Fgl.git Initialize members of VulkanVertexSetup --- diff --git a/source/backends/vulkan/vertexsetup_backend.h b/source/backends/vulkan/vertexsetup_backend.h index 785f5e7e..091056b8 100644 --- a/source/backends/vulkan/vertexsetup_backend.h +++ b/source/backends/vulkan/vertexsetup_backend.h @@ -18,9 +18,9 @@ class VulkanVertexSetup: public NonCopyable protected: mutable std::vector creation_info; - mutable std::uint32_t n_bindings; - mutable VkBuffer buffers[2]; - mutable std::uint64_t offsets[2]; + mutable std::uint32_t n_bindings = 0; + mutable VkBuffer buffers[2] = { }; + mutable std::uint64_t offsets[2] = { }; VulkanVertexSetup() = default; VulkanVertexSetup(VulkanVertexSetup &&);