From e916662b0f17b93d8987d481784cd45073335990 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Thu, 11 Apr 2024 17:24:19 -0300 Subject: [PATCH] Account for swapchain image count change after re-creation (#6652) --- src/Ryujinx.Graphics.Vulkan/Window.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Ryujinx.Graphics.Vulkan/Window.cs b/src/Ryujinx.Graphics.Vulkan/Window.cs index 5ddb6eed..a4ac9e9f 100644 --- a/src/Ryujinx.Graphics.Vulkan/Window.cs +++ b/src/Ryujinx.Graphics.Vulkan/Window.cs @@ -330,6 +330,7 @@ namespace Ryujinx.Graphics.Vulkan _swapchainIsDirty) { RecreateSwapchain(); + semaphoreIndex = (_frameIndex - 1) % _imageAvailableSemaphores.Length; } else {