summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-04-21 05:38:47 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-04-21 05:38:47 +0000
commit3cd69ada3f3b2d89fce29f9aff6dd660535e75da (patch)
tree82aaaec9085f572aeb0b0f450519f36ef282e02f /Graphics/GraphicsEngineVulkan
parentReworked SetRenderTargets() function to set framebuffer size (diff)
downloadDiligentCore-3cd69ada3f3b2d89fce29f9aff6dd660535e75da.tar.gz
DiligentCore-3cd69ada3f3b2d89fce29f9aff6dd660535e75da.zip
Renamed ClearRenderTargets to ResetRenderTargets
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
-rw-r--r--Graphics/GraphicsEngineVulkan/src/SwapChainVkImpl.cpp2
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();