Don't create debug message callback if we don't have it

This commit is contained in:
baldurk
2016-02-07 18:37:27 +01:00
parent 3c0a69d6e1
commit ecab81f9b2
+3 -1
View File
@@ -340,7 +340,9 @@ VkResult WrappedVulkan::vkCreateInstance(
}
#endif
if(RenderDoc::Inst().GetCaptureOptions().DebugDeviceMode)
// VKTODO we should try and fetch vkDbgCreateMsgCallback ourselves if it isn't
// already loaded
if(RenderDoc::Inst().GetCaptureOptions().DebugDeviceMode && m_Real.vkDbgCreateMsgCallback)
{
VkFlags flags = VK_DBG_REPORT_INFO_BIT |
VK_DBG_REPORT_WARN_BIT |