Fixed the removal of the device frame capturer in vkDestroyInstance.

This commit is contained in:
scottmarsland
2018-04-16 10:15:59 +01:00
committed by Baldur Karlsson
parent 6e152884ce
commit e7dec9e5ae
@@ -573,10 +573,9 @@ void WrappedVulkan::vkDestroyInstance(VkInstance instance, const VkAllocationCal
// application is well behaved. If not, we just leak.
ObjDisp(m_Instance)->DestroyInstance(Unwrap(m_Instance), NULL);
GetResourceManager()->ReleaseWrappedResource(m_Instance);
RenderDoc::Inst().RemoveDeviceFrameCapturer(LayerDisp(m_Instance));
GetResourceManager()->ReleaseWrappedResource(m_Instance);
m_Instance = VK_NULL_HANDLE;
}