Fix issue with freeing resources

This commit is contained in:
Georg Hagen
2024-07-11 13:22:01 +02:00
parent 22cb48be89
commit 313b01db1b
16 changed files with 300 additions and 156 deletions

View File

@@ -26,7 +26,10 @@ namespace OpenVulkano::Vulkan
Init(instance);
}
~DeviceManager() = default;
~DeviceManager()
{
if (!devices.empty()) Close();
}
void Init(const vk::Instance& instance);