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:
parent
2245aada03
commit
4cc35da3b2
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user