object: avoid comparing different types
This commit is contained in:
parent
7f35915772
commit
098bba3a7a
@ -34,7 +34,7 @@ namespace cruft::vk {
|
|||||||
object (const native_t<SelfT> &_native):
|
object (const native_t<SelfT> &_native):
|
||||||
m_native (_native)
|
m_native (_native)
|
||||||
{
|
{
|
||||||
CHECK_NEQ (m_native, VK_NULL_HANDLE);
|
CHECK_NEQ (m_native, static_cast<native_type> (VK_NULL_HANDLE));
|
||||||
}
|
}
|
||||||
|
|
||||||
object (object &&rhs):
|
object (object &&rhs):
|
||||||
@ -146,7 +146,7 @@ namespace cruft::vk {
|
|||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
~owned ()
|
~owned ()
|
||||||
{
|
{
|
||||||
CHECK_EQ (this->native (), VK_NULL_HANDLE);
|
CHECK_EQ (this->native (), static_cast<typename SelfT::native_type> (VK_NULL_HANDLE));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user