diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2024-01-20 19:36:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-20 19:36:18 +0100 |
commit | 444e86d191fc7e3e125b35dc8b5c1a292c54da7c (patch) | |
tree | a7bfbd88b16b68ca02ebdbe8f9830e0110ab3189 /src/video_core | |
parent | Merge pull request #12724 from merryhime/fs-u8str-overloads (diff) | |
parent | renderer_vulkan: recreate swapchain when frame size changes (diff) | |
download | yuzu-444e86d191fc7e3e125b35dc8b5c1a292c54da7c.tar yuzu-444e86d191fc7e3e125b35dc8b5c1a292c54da7c.tar.gz yuzu-444e86d191fc7e3e125b35dc8b5c1a292c54da7c.tar.bz2 yuzu-444e86d191fc7e3e125b35dc8b5c1a292c54da7c.tar.lz yuzu-444e86d191fc7e3e125b35dc8b5c1a292c54da7c.tar.xz yuzu-444e86d191fc7e3e125b35dc8b5c1a292c54da7c.tar.zst yuzu-444e86d191fc7e3e125b35dc8b5c1a292c54da7c.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_present_manager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_present_manager.cpp b/src/video_core/renderer_vulkan/vk_present_manager.cpp index 792ed9615..5e7518d96 100644 --- a/src/video_core/renderer_vulkan/vk_present_manager.cpp +++ b/src/video_core/renderer_vulkan/vk_present_manager.cpp @@ -329,7 +329,7 @@ void PresentManager::CopyToSwapchainImpl(Frame* frame) { // to account for that. const bool is_suboptimal = swapchain.NeedsRecreation(); const bool size_changed = - swapchain.GetWidth() < frame->width || swapchain.GetHeight() < frame->height; + swapchain.GetWidth() != frame->width || swapchain.GetHeight() != frame->height; if (is_suboptimal || size_changed) { RecreateSwapchain(frame); } |