From 4cc35da3b277537486cfaedeb36b66617f474684 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Tue, 23 Apr 2019 20:11:32 +0200 Subject: [PATCH] [d3d11] Allocate one additional swap chain image DXGI's BufferCount apparently only counts back buffers, while there's an implicit front buffer. --- src/d3d11/d3d11_swapchain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d11/d3d11_swapchain.cpp b/src/d3d11/d3d11_swapchain.cpp index 3878e5289..b74f30ce6 100644 --- a/src/d3d11/d3d11_swapchain.cpp +++ b/src/d3d11/d3d11_swapchain.cpp @@ -326,7 +326,7 @@ namespace dxvk { void D3D11SwapChain::RecreateSwapChain(BOOL Vsync) { vk::PresenterDesc presenterDesc; presenterDesc.imageExtent = { m_desc.Width, m_desc.Height }; - presenterDesc.imageCount = PickImageCount(m_desc.BufferCount); + presenterDesc.imageCount = PickImageCount(m_desc.BufferCount + 1); presenterDesc.numFormats = PickFormats(m_desc.Format, presenterDesc.formats); presenterDesc.numPresentModes = PickPresentModes(Vsync, presenterDesc.presentModes);