mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-20 11:09:58 +00:00
renderer_vulkan: recreate swapchain when frame size changes
This commit is contained in:
parent
2c29c2b8dd
commit
e9eb017aac
1 changed files with 1 additions and 1 deletions
|
@ -329,7 +329,7 @@ void PresentManager::CopyToSwapchainImpl(Frame* frame) {
|
||||||
// to account for that.
|
// to account for that.
|
||||||
const bool is_suboptimal = swapchain.NeedsRecreation();
|
const bool is_suboptimal = swapchain.NeedsRecreation();
|
||||||
const bool size_changed =
|
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) {
|
if (is_suboptimal || size_changed) {
|
||||||
RecreateSwapchain(frame);
|
RecreateSwapchain(frame);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue