From 7e1a9490c0112358b4a6593f6e4ec23bb5d1201b Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Mon, 30 Sep 2024 18:29:38 -0500 Subject: VideoBackends:Vulkan: Don't try to present if swapchain acquire failed --- Source/Core/VideoBackends/Software/SWGfx.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Source/Core/VideoBackends/Software/SWGfx.cpp') diff --git a/Source/Core/VideoBackends/Software/SWGfx.cpp b/Source/Core/VideoBackends/Software/SWGfx.cpp index 7b9196063d..bfe7f95421 100644 --- a/Source/Core/VideoBackends/Software/SWGfx.cpp +++ b/Source/Core/VideoBackends/Software/SWGfx.cpp @@ -55,15 +55,16 @@ SWGfx::CreateFramebuffer(AbstractTexture* color_attachment, AbstractTexture* dep std::move(additional_color_attachments)); } -void SWGfx::BindBackbuffer(const ClearColor& clear_color) +bool SWGfx::BindBackbuffer(const ClearColor& clear_color) { // Look for framebuffer resizes if (!g_presenter->SurfaceResizedTestAndClear()) - return; + return true; GLContext* context = m_window->GetContext(); context->Update(); g_presenter->SetBackbuffer(context->GetBackBufferWidth(), context->GetBackBufferHeight()); + return true; } class SWShader final : public AbstractShader -- cgit v1.2.3