Release swapchain resources when shutting down swapchain

This commit is contained in:
baldurk
2016-07-10 16:43:19 +03:00
parent 8fd872525a
commit 1a4ccf775c
+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);