mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-17 04:38:15 +01:00
renderer_vulkan: recreate swapchain when frame size changes
This commit is contained in:
1 parent
fa21d6ee85
commit
be2a32b041
1 file changed
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user