mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 14:42:48 +00:00
Fixed leak with vertex_formats
This commit is contained in:
parent
94fab21348
commit
f4301b7259
@ -7049,6 +7049,13 @@ void RenderingDeviceVulkan::finalize() {
|
||||
vmaDestroyBuffer(allocator, staging_buffer_blocks[i].buffer, staging_buffer_blocks[i].allocation);
|
||||
}
|
||||
|
||||
while (vertex_formats.size()) {
|
||||
Map<VertexFormatID, VertexDescriptionCache>::Element *temp = vertex_formats.front();
|
||||
memdelete_arr(temp->get().bindings);
|
||||
memdelete_arr(temp->get().attributes);
|
||||
vertex_formats.erase(temp);
|
||||
}
|
||||
|
||||
//all these should be clear at this point
|
||||
ERR_FAIL_COND(descriptor_pools.size());
|
||||
ERR_FAIL_COND(dependency_map.size());
|
||||
|
Loading…
Reference in New Issue
Block a user