UniqueHandle- Fixed compile error in 32-bit

Because in 32-bit Vulkan-handles are integers, the assignment from
nullptr is not valid and doesn't compile. VK_NULL_HANDLE on the other
hand abstracts the differences between 32- and 64-bit environments.
This commit is contained in:
spfuetzner 2017-02-13 17:40:16 +01:00
parent 43b2c5ef66
commit f8baa7a696
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -397,7 +397,7 @@ namespace vk
Type release()
{
Type value = m_value;
m_value = nullptr;
m_value = VK_NULL_HANDLE;
return value;
}