Explorar el Código

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

gdkchan hace 2 años
padre
commit
e916662b0f
Se han modificado 1 ficheros con 1 adiciones y 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
                 {