summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3D11
diff options
context:
space:
mode:
Diffstat (limited to 'Graphics/GraphicsEngineD3D11')
-rw-r--r--Graphics/GraphicsEngineD3D11/src/SwapChainD3D11Impl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineD3D11/src/SwapChainD3D11Impl.cpp b/Graphics/GraphicsEngineD3D11/src/SwapChainD3D11Impl.cpp
index 1666a034..85d5e054 100644
--- a/Graphics/GraphicsEngineD3D11/src/SwapChainD3D11Impl.cpp
+++ b/Graphics/GraphicsEngineD3D11/src/SwapChainD3D11Impl.cpp
@@ -173,6 +173,9 @@ void SwapChainD3D11Impl::UpdateSwapChain(bool CreateNew)
m_SwapChainDesc.Height, SCDes.BufferDesc.Format,
SCDes.Flags),
"Failed to resize the DXGI swap chain");
+
+ // Call flush to release resources
+ pImmediateCtxD3D11->Flush();
}
CreateRTVandDSV();