mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
OGL: Fix headless frame dumping
Also skips swapping the window system buffers in headless mode, as there may not be a surface which can be swapped in the first place. Instead, we call glFlush() at the end of a frame in this case.
This commit is contained in:
@ -600,7 +600,6 @@ void Renderer::DrawScreen(VKTexture* xfb_texture, const EFBRectangle& xfb_region
|
||||
VK_SUBPASS_CONTENTS_INLINE);
|
||||
|
||||
// Draw
|
||||
TargetRectangle source_rc = xfb_texture->GetConfig().GetRect();
|
||||
BlitScreen(m_swap_chain->GetRenderPass(), GetTargetRectangle(), xfb_region,
|
||||
xfb_texture->GetRawTexIdentifier());
|
||||
|
||||
@ -702,6 +701,7 @@ void Renderer::CheckForSurfaceChange()
|
||||
|
||||
// Notify calling thread.
|
||||
m_surface_needs_change.Clear();
|
||||
m_surface_handle = m_new_surface_handle;
|
||||
m_new_surface_handle = nullptr;
|
||||
m_surface_changed.Set();
|
||||
}
|
||||
|
Reference in New Issue
Block a user