diff options
| author | Connor McLaughlin <stenzek@gmail.com> | 2019-01-08 21:57:25 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-08 21:57:25 +1000 |
| commit | 0da592922674bf4010c91548b844b2688a191add (patch) | |
| tree | ec942f963ee77e423f215cdd8ab049b97522016f /Source/Core/VideoCommon/RenderBase.cpp | |
| parent | 80c8c39d2e0b5b8630da361767e752897152a6f2 (diff) | |
| parent | 66a7db3850480bf7f1303fc1251d64a01091fef2 (diff) | |
Merge pull request #7626 from weihuoya/vulkan-oom
Always clean cache on render swap
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/RenderBase.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp index 6cbb5def5f..3c8c5d5a82 100644 --- a/Source/Core/VideoCommon/RenderBase.cpp +++ b/Source/Core/VideoCommon/RenderBase.cpp @@ -747,11 +747,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() |
