mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
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:
parent
43b2c5ef66
commit
f8baa7a696
@ -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;
|
||||
}
|
||||
|
||||
|
@ -397,7 +397,7 @@ namespace vk
|
||||
Type release()
|
||||
{
|
||||
Type value = m_value;
|
||||
m_value = nullptr;
|
||||
m_value = VK_NULL_HANDLE;
|
||||
return value;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user