Refactor code
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user