diff options
| author | 2023-12-31 21:00:23 +0100 | |
|---|---|---|
| committer | 2023-12-31 21:03:46 +0100 | |
| commit | 737e6e531c8eb155fcbd19ddd679336332bbc8c6 (patch) | |
| tree | e7446a2cbc3bb9e8fc683eb7b5f1fdfeadbb0f2a /src/video_core/renderer_vulkan | |
| parent | MaxwellDMA: Don't flush the outputs of a dma copy. (diff) | |
| download | yuzu-737e6e531c8eb155fcbd19ddd679336332bbc8c6.tar.gz yuzu-737e6e531c8eb155fcbd19ddd679336332bbc8c6.tar.xz yuzu-737e6e531c8eb155fcbd19ddd679336332bbc8c6.zip | |
Vulkan: Only recreate swapchain if the frame is bigger than the swap image.
Diffstat (limited to 'src/video_core/renderer_vulkan')
| -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 5e7518d96..792ed9615 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) { | |||
| 329 | // to account for that. | 329 | // to account for that. |
| 330 | const bool is_suboptimal = swapchain.NeedsRecreation(); | 330 | const bool is_suboptimal = swapchain.NeedsRecreation(); |
| 331 | const bool size_changed = | 331 | const bool size_changed = |
| 332 | swapchain.GetWidth() != frame->width || swapchain.GetHeight() != frame->height; | 332 | swapchain.GetWidth() < frame->width || swapchain.GetHeight() < frame->height; |
| 333 | if (is_suboptimal || size_changed) { | 333 | if (is_suboptimal || size_changed) { |
| 334 | RecreateSwapchain(frame); | 334 | RecreateSwapchain(frame); |
| 335 | } | 335 | } |