Destroy debug callback (Fixes #15)
This commit is contained in:
parent
84c362bf61
commit
a7a1a8aed4
1 changed files with 2 additions and 3 deletions
|
|
@ -76,7 +76,7 @@ namespace vkDebug
|
||||||
instance,
|
instance,
|
||||||
&dbgCreateInfo,
|
&dbgCreateInfo,
|
||||||
nullptr,
|
nullptr,
|
||||||
&msgCallback);
|
(callBack != nullptr) ? &callBack : &msgCallback);
|
||||||
assert(!err);
|
assert(!err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -84,8 +84,7 @@ namespace vkDebug
|
||||||
{
|
{
|
||||||
if (msgCallback != VK_NULL_HANDLE)
|
if (msgCallback != VK_NULL_HANDLE)
|
||||||
{
|
{
|
||||||
// Commented out as this crashes on some implementations for some reason (at least in VS2015)
|
DestroyDebugReportCallback(instance, msgCallback, nullptr);
|
||||||
// DestroyDebugReportCallback(instance, msgCallback, nullptr);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue