Rename presentation recreation helper

This commit is contained in:
keycross committed 2026-08-29 18:37:28 +09:00
1 parent 453b93f87d
commit 4c35f662ab
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -412,7 +412,7 @@ bool VulkanRenderManager::CreateSwapchainViewsAndDepth(VkCommandBuffer cmdInit,
return true;
}
bool VulkanRenderManager::RecreatePresentation() {
bool VulkanRenderManager::RecreatePresentationIfNeeded() {
VulkanPresentation *presentation = vulkan_->GetPresentation();
if (!presentation || !presentation->NeedsRecreate()) {
return true;
@@ -748,7 +748,7 @@ void VulkanRenderManager::BeginFrame(bool enableProfiling, bool enableLogProfile
_assert_msg_(false, "Device lost in vkWaitForFences");
}
if (!RecreatePresentation()) {
if (!RecreatePresentationIfNeeded()) {
restoreReadyForFence();
ERROR_LOG(Log::G3D, "Failed to recreate Vulkan presentation backbuffers");
return;
+1 -1
View File
@@ -565,7 +565,7 @@ private:
void SanityCheckPassesOnAdd();
bool CreateSwapchainViewsAndDepth(VkCommandBuffer cmdInit, VulkanBarrierBatch *barriers, FrameDataShared &frameDataShared);
bool RecreatePresentation();
bool RecreatePresentationIfNeeded();
FrameDataShared frameDataShared_;