summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3D11
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-08-08 04:49:43 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-08-08 04:49:43 +0000
commit4b56f6c4f0167d4aee69682e83d58415ac2127f5 (patch)
tree43968c89e374c7926c5c706fda07bf7f0cca373b /Graphics/GraphicsEngineD3D11
parentOpenGL backend: creating a dummy fragment shader when none is present in the ... (diff)
downloadDiligentCore-4b56f6c4f0167d4aee69682e83d58415ac2127f5.tar.gz
DiligentCore-4b56f6c4f0167d4aee69682e83d58415ac2127f5.zip
Fixed out-of-memory issue when resizing D3D11 swap chain
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();