diff options
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/src/SwapChainVkImpl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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<DeviceContextVkImpl>(); 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(); |
