summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaul Santos <raulsntos@gmail.com>2021-09-07 17:59:27 +0200
committerRaul Santos <raulsntos@gmail.com>2021-09-17 17:20:19 +0200
commit7a0e1bd135b9610018deb694ed9ee6e7eed95563 (patch)
tree95cad4ffb1480520c5f7bdf148b2d82e3b6b2cb3
parent43e96e0c652cd2ed41a1b9dfb7989ff272607a88 (diff)
Fix buffer_info may be used uninitialized
-rw-r--r--drivers/vulkan/rendering_device_vulkan.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/vulkan/rendering_device_vulkan.cpp b/drivers/vulkan/rendering_device_vulkan.cpp
index a4324f0a2c..f8fc949220 100644
--- a/drivers/vulkan/rendering_device_vulkan.cpp
+++ b/drivers/vulkan/rendering_device_vulkan.cpp
@@ -8394,6 +8394,7 @@ void RenderingDeviceVulkan::_free_internal(RID p_id) {
b.allocation = index_buffer->allocation;
b.buffer = index_buffer->buffer;
b.size = index_buffer->size;
+ b.buffer_info = {};
frames[frame].buffers_to_dispose_of.push_back(b);
index_buffer_owner.free(p_id);
} else if (index_array_owner.owns(p_id)) {