From 8435a45f64cef0985b340e91d6af3af6ffdb058c Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Fri, 20 Apr 2018 22:36:28 -0700 Subject: Reworked SetRenderTargets() function to set framebuffer size --- Graphics/GraphicsEngineD3D11/src/SwapChainD3D11Impl.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Graphics/GraphicsEngineD3D11') 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(); 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(); -- cgit v1.2.3