Merge pull request #52464 from raulsntos/fix_buffer_info_uninitialized

This commit is contained in:
Rémi Verschelde 2021-09-17 19:16:46 +02:00 committed by GitHub
commit 98a7bf3406
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8394,6 +8394,7 @@ void RenderingDeviceVulkan::_free_internal(RID p_id) {
b.allocation = index_buffer->allocation; b.allocation = index_buffer->allocation;
b.buffer = index_buffer->buffer; b.buffer = index_buffer->buffer;
b.size = index_buffer->size; b.size = index_buffer->size;
b.buffer_info = {};
frames[frame].buffers_to_dispose_of.push_back(b); frames[frame].buffers_to_dispose_of.push_back(b);
index_buffer_owner.free(p_id); index_buffer_owner.free(p_id);
} else if (index_array_owner.owns(p_id)) { } else if (index_array_owner.owns(p_id)) {