Fix issue with freeing resources
This commit is contained in:
@@ -26,7 +26,10 @@ namespace OpenVulkano::Vulkan
|
||||
Init(instance);
|
||||
}
|
||||
|
||||
~DeviceManager() = default;
|
||||
~DeviceManager()
|
||||
{
|
||||
if (!devices.empty()) Close();
|
||||
}
|
||||
|
||||
void Init(const vk::Instance& instance);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user