summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/SWGfx.cpp
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2024-10-02 21:09:25 -0400
committerGitHub <noreply@github.com>2024-10-02 21:09:25 -0400
commite259831bcfb90b6d27d28114b9350786543cba6c (patch)
treef2bbb8648814260053f4ca351dca5f7eba1ffd3e /Source/Core/VideoBackends/Software/SWGfx.cpp
parent122bce08deb8953f69668a2da1e48672699b0322 (diff)
parenta267c5641203e36d4d10ddf75e94bbe33a9e6c7b (diff)
Merge pull request #13087 from TellowKrinkle/PresentSkip
VideoBackends:Vulkan: Prevent freezes during window resize on Linux
Diffstat (limited to 'Source/Core/VideoBackends/Software/SWGfx.cpp')
-rw-r--r--Source/Core/VideoBackends/Software/SWGfx.cpp5
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