]> git.tdb.fi Git - libs/gl.git/commitdiff
Initialize members of VulkanVertexSetup
authorMikko Rasa <tdb@tdb.fi>
Thu, 9 Dec 2021 09:48:25 +0000 (11:48 +0200)
committerMikko Rasa <tdb@tdb.fi>
Thu, 9 Dec 2021 09:48:58 +0000 (11:48 +0200)
source/backends/vulkan/vertexsetup_backend.h

index 785f5e7e284e9538713b0789d303dd065e6cdd2d..091056b8d64bb148532703673bf90a1c55ca00aa 100644 (file)
@@ -18,9 +18,9 @@ class VulkanVertexSetup: public NonCopyable
 
 protected:
        mutable std::vector<char> 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 &&);