From 66a7db3850480bf7f1303fc1251d64a01091fef2 Mon Sep 17 00:00:00 2001 From: weihuoya Date: Tue, 8 Jan 2019 18:28:59 +0800 Subject: Always flush on swap --- Source/Core/VideoCommon/RenderBase.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Source/Core/VideoCommon/RenderBase.cpp') diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp index ba60e1636c..7e01182127 100644 --- a/Source/Core/VideoCommon/RenderBase.cpp +++ b/Source/Core/VideoCommon/RenderBase.cpp @@ -751,11 +751,19 @@ void Renderer::Swap(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight, const Core::Callback_VideoCopiedToXFB(true); } + else + { + Flush(); + } // Update our last xfb values m_last_xfb_width = (fbStride < 1 || fbStride > MAX_XFB_WIDTH) ? MAX_XFB_WIDTH : fbStride; m_last_xfb_height = (fbHeight < 1 || fbHeight > MAX_XFB_HEIGHT) ? MAX_XFB_HEIGHT : fbHeight; } + else + { + Flush(); + } } bool Renderer::IsFrameDumping() -- cgit v1.2.3