From 32125cf1817b57f0b6eb390409ba7167a1671cf7 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Thu, 23 Nov 2017 16:53:44 +1000 Subject: 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. --- Source/Core/VideoBackends/Vulkan/Renderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/VideoBackends/Vulkan/Renderer.cpp') diff --git a/Source/Core/VideoBackends/Vulkan/Renderer.cpp b/Source/Core/VideoBackends/Vulkan/Renderer.cpp index 8f83e2b202..084e7a2880 100644 --- a/Source/Core/VideoBackends/Vulkan/Renderer.cpp +++ b/Source/Core/VideoBackends/Vulkan/Renderer.cpp @@ -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(); } -- cgit v1.2.3