Account for swapchain image count change after re-creation

This commit is contained in:
Gabriel A 2024-04-11 02:26:10 -03:00
commit f8564548f8

View file

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