Refactor code

This commit is contained in:
2020-09-25 01:55:18 +02:00
parent 9f105a4397
commit 4f2122a2be
12 changed files with 457 additions and 358 deletions

View File

@@ -14,7 +14,7 @@ namespace openVulkanoCpp
{
namespace Vulkan
{
class Context : virtual public ICloseable
class Context final : virtual public ICloseable
{
bool enableValidationLayer, initialized;
std::set<std::string> requiredExtensions;
@@ -38,7 +38,8 @@ namespace openVulkanoCpp
enableValidationLayer = false;
#endif
}
virtual ~Context()
~Context() override
{
if (initialized) Close();
}