From 3cd69ada3f3b2d89fce29f9aff6dd660535e75da Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Fri, 20 Apr 2018 22:38:47 -0700 Subject: Renamed ClearRenderTargets to ResetRenderTargets --- Graphics/GraphicsEngineVulkan/src/SwapChainVkImpl.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Graphics/GraphicsEngineVulkan') diff --git a/Graphics/GraphicsEngineVulkan/src/SwapChainVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/SwapChainVkImpl.cpp index 58915275..03722eb8 100644 --- a/Graphics/GraphicsEngineVulkan/src/SwapChainVkImpl.cpp +++ b/Graphics/GraphicsEngineVulkan/src/SwapChainVkImpl.cpp @@ -475,6 +475,8 @@ void SwapChainVkImpl::Resize( Uint32 NewWidth, Uint32 NewHeight ) { auto *pImmediateCtxVk = pDeviceContext.RawPtr(); bool bIsDefaultFBBound = pImmediateCtxVk->IsDefaultFBBound(); + if(bIsDefaultFBBound) + pImmediateCtxVk->ResetRenderTargets(); // All references to the swap chain must be released before it can be resized m_pBackBufferRTV.clear(); -- cgit v1.2.3