From c525d7d9a9a29fcca33ac3e12cef3c6c7e94b158 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sun, 7 Jul 2024 19:02:11 -0300 Subject: [PATCH] Force Vulkan swapchain re-creation when window size changes (#7003) --- src/Ryujinx.Graphics.Vulkan/Window.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Ryujinx.Graphics.Vulkan/Window.cs b/src/Ryujinx.Graphics.Vulkan/Window.cs index a4ac9e9f..efb0b31f 100644 --- a/src/Ryujinx.Graphics.Vulkan/Window.cs +++ b/src/Ryujinx.Graphics.Vulkan/Window.cs @@ -623,7 +623,8 @@ namespace Ryujinx.Graphics.Vulkan public override void SetSize(int width, int height) { - // Not needed as we can get the size from the surface. + // We don't need to use width and height as we can get the size from the surface. + _swapchainIsDirty = true; } public override void ChangeVSyncMode(bool vsyncEnabled)