summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/MainBase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoCommon/MainBase.cpp')
-rw-r--r--Source/Core/VideoCommon/MainBase.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/MainBase.cpp b/Source/Core/VideoCommon/MainBase.cpp
index 38d37113e2..280fed683d 100644
--- a/Source/Core/VideoCommon/MainBase.cpp
+++ b/Source/Core/VideoCommon/MainBase.cpp
@@ -45,6 +45,15 @@ void VideoBackendBase::Video_ExitLoop()
s_FifoShuttingDown.Set();
}
+void VideoBackendBase::Video_CleanupShared()
+{
+ // First stop any framedumping, which might need to dump the last xfb frame. This process
+ // can require additional graphics sub-systems so it needs to be done first
+ g_renderer->ExitFramedumping();
+
+ Video_Cleanup();
+}
+
// Run from the CPU thread (from VideoInterface.cpp)
void VideoBackendBase::Video_BeginField(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight,
u64 ticks)