diff options
| author | TellowKrinkle <tellowkrinkle@gmail.com> | 2024-09-30 18:29:38 -0500 |
|---|---|---|
| committer | TellowKrinkle <tellowkrinkle@gmail.com> | 2024-10-02 19:22:16 -0500 |
| commit | 7e1a9490c0112358b4a6593f6e4ec23bb5d1201b (patch) | |
| tree | e2aa46d103b0c38605fa84df2803d4d6570b037c /Source/Core/VideoBackends/Software/SWGfx.cpp | |
| parent | c7cbac538ab22b00c8b20d329fb02141430751bd (diff) | |
VideoBackends:Vulkan: Don't try to present if swapchain acquire failed
Diffstat (limited to 'Source/Core/VideoBackends/Software/SWGfx.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/SWGfx.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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 |
