Destroy debug callback (Fixes #15)

This commit is contained in:
saschawillems 2016-05-19 22:21:57 +02:00
parent 84c362bf61
commit a7a1a8aed4

View file

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