summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/MainBase.cpp
diff options
context:
space:
mode:
authoriwubcode <iwubcode@users.noreply.github.com>2017-09-13 23:46:30 -0500
committeriwubcode <iwubcode@users.noreply.github.com>2017-11-17 22:11:32 -0600
commita129a53e56cdff93e2fd092fd56f3e0726408a60 (patch)
tree7be3863250ab93c7bb814c115968a7c433403a9a /Source/Core/VideoCommon/MainBase.cpp
parent53684701fa1f9a787f8d089d864c5c1c97effa8c (diff)
Video Common: Improve texture dumping to work with fifoci and
fifo_comparer
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)