Explorar o código

Account for swapchain image count change after re-creation (#6652)

gdkchan %!s(int64=2) %!d(string=hai) anos
pai
achega
e916662b0f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/Ryujinx.Graphics.Vulkan/Window.cs

+ 1 - 0
src/Ryujinx.Graphics.Vulkan/Window.cs

@@ -330,6 +330,7 @@ namespace Ryujinx.Graphics.Vulkan
                     _swapchainIsDirty)
                 {
                     RecreateSwapchain();
+                    semaphoreIndex = (_frameIndex - 1) % _imageAvailableSemaphores.Length;
                 }
                 else
                 {