diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index 7970c8d..c4ebb24 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -515,7 +515,7 @@ std::string const uniqueHandleHeader = { R"( Type release() { Type value = m_value; - m_value = nullptr; + m_value = VK_NULL_HANDLE; return value; } diff --git a/vulkan/vulkan.hpp b/vulkan/vulkan.hpp index f655d07..d4cf58c 100644 --- a/vulkan/vulkan.hpp +++ b/vulkan/vulkan.hpp @@ -397,7 +397,7 @@ namespace vk Type release() { Type value = m_value; - m_value = nullptr; + m_value = VK_NULL_HANDLE; return value; }