Fix issue with freeing resources
This commit is contained in:
@@ -45,6 +45,8 @@ namespace OpenVulkano
|
||||
public:
|
||||
Device(vk::PhysicalDevice& physicalDevice);
|
||||
|
||||
~Device() { if (device) Close(); }
|
||||
|
||||
[[nodiscard]] std::string GetDeviceName() const
|
||||
{
|
||||
return properties.deviceName.data();
|
||||
|
||||
Reference in New Issue
Block a user