"Merge Tagged PR 12688"

This commit is contained in:
yuzubot committed 2024-01-18 13:02:52 +00:00
1 parent c87b96435d
commit 585a0e5c0a
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);
}