1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

[d3d11] Allocate one additional swap chain image

DXGI's BufferCount apparently only counts back buffers,
while there's an implicit front buffer.
This commit is contained in:
Philip Rebohle 2019-04-23 20:11:32 +02:00
parent 2245aada03
commit 4cc35da3b2

View File

@ -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);