mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-02-18 11:55:38 +00:00
Vulkan: Default to two swap chain images
This commit is contained in:
parent
1320e4fdab
commit
368820d6e9
|
@ -343,7 +343,7 @@ bool SwapChain::CreateSwapChain()
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Select number of images in swap chain, we prefer one buffer in the background to work on
|
// Select number of images in swap chain, we prefer one buffer in the background to work on
|
||||||
u32 image_count = surface_capabilities.minImageCount + 1u;
|
u32 image_count = std::max(surface_capabilities.minImageCount + 1u, 2u);
|
||||||
|
|
||||||
// maxImageCount can be zero, in which case there isn't an upper limit on the number of buffers.
|
// maxImageCount can be zero, in which case there isn't an upper limit on the number of buffers.
|
||||||
if (surface_capabilities.maxImageCount > 0)
|
if (surface_capabilities.maxImageCount > 0)
|
||||||
|
|
Loading…
Reference in a new issue