mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 07:13:35 +00:00
Vulkan: Fix scenario where we limit the number of frames too much.
This commit is contained in:
parent
9e060bf088
commit
6e7f1371dd
@ -1446,6 +1446,8 @@ bool vulkan_create_swapchain(gfx_ctx_vulkan_data_t *vk,
|
||||
/* Limit latency. */
|
||||
if (desired_swapchain_images > 3)
|
||||
desired_swapchain_images = 3;
|
||||
if (desired_swapchain_images < surface_properties.minImageCount)
|
||||
desired_swapchain_images = surface_properties.minImageCount;
|
||||
|
||||
if ((surface_properties.maxImageCount > 0)
|
||||
&& (desired_swapchain_images > surface_properties.maxImageCount))
|
||||
|
Loading…
x
Reference in New Issue
Block a user