1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-02 19:24:12 +01:00

[d3d11] Fix initial swap chain image count

Reported-by: Joshua Ashton <joshua@froggi.es>
This commit is contained in:
Philip Rebohle 2019-06-02 15:00:15 +02:00
parent 42c9fad017
commit 40d4922682

View File

@ -339,7 +339,7 @@ namespace dxvk {
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(false, presenterDesc.presentModes);