summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3D11
diff options
context:
space:
mode:
Diffstat (limited to 'Graphics/GraphicsEngineD3D11')
-rw-r--r--Graphics/GraphicsEngineD3D11/src/SwapChainD3D11Impl.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/Graphics/GraphicsEngineD3D11/src/SwapChainD3D11Impl.cpp b/Graphics/GraphicsEngineD3D11/src/SwapChainD3D11Impl.cpp
index b50958c7..f5a191ad 100644
--- a/Graphics/GraphicsEngineD3D11/src/SwapChainD3D11Impl.cpp
+++ b/Graphics/GraphicsEngineD3D11/src/SwapChainD3D11Impl.cpp
@@ -142,10 +142,7 @@ void SwapChainD3D11Impl::UpdateSwapChain(bool CreateNew)
auto *pImmediateCtxD3D11 = pDeviceContext.RawPtr<DeviceContextD3D11Impl>();
bool bIsDefaultFBBound = pImmediateCtxD3D11->IsDefaultFBBound();
if (bIsDefaultFBBound)
- {
- ITextureView *pNullTexView[] = { nullptr };
- pImmediateCtxD3D11->SetRenderTargets(_countof(pNullTexView), pNullTexView, nullptr);
- }
+ pImmediateCtxD3D11->ClearRenderTargets();
// Swap chain cannot be resized until all references are released
m_pRenderTargetView.Release();