Release swapchain resources when shutting down swapchain

This commit is contained in:
baldurk committed 2016-07-10 18:10:05 +02:00
1 parent 8fd872525a
commit 1a4ccf775c
1 file changed
+2
+2
View File
@@ -227,6 +227,8 @@ WrappedIDXGISwapChain3::WrappedIDXGISwapChain3(IDXGISwapChain *real, HWND wnd, I
WrappedIDXGISwapChain3::~WrappedIDXGISwapChain3()
{
m_pDevice->ReleaseSwapchainResources(this);
m_pDevice->ShutdownSwapchain(this);
SAFE_RELEASE(m_pDevice);