summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.cpp
diff options
context:
space:
mode:
authoriwubcode <iwubcode@users.noreply.github.com>2017-06-02 20:33:26 -0500
committeriwubcode <iwubcode@users.noreply.github.com>2017-11-17 22:11:28 -0600
commit198d3b69b43b19685b4d4bed0173ebf2b2db9f0a (patch)
tree678d0aee7c2ce10d8c26ee4056f63e0e137bbda5 /Source/Core/VideoCommon/TextureCacheBase.cpp
parenta9f0d1783bdf00e6610d314c48d8c16cf9439a1f (diff)
Add ability to dump xfb copies to texture for debugging purposes
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
-rw-r--r--Source/Core/VideoCommon/TextureCacheBase.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp
index fb30575a95..918e33bd64 100644
--- a/Source/Core/VideoCommon/TextureCacheBase.cpp
+++ b/Source/Core/VideoCommon/TextureCacheBase.cpp
@@ -1568,10 +1568,19 @@ void TextureCacheBase::CopyRenderTargetToTexture(u32 dstAddr, EFBCopyFormat dstF
if (g_ActiveConfig.bDumpEFBTarget && !is_xfb_copy)
{
- static int count = 0;
+ static int efb_count = 0;
entry->texture->Save(StringFromFormat("%sefb_frame_%i.png",
File::GetUserPath(D_DUMPTEXTURES_IDX).c_str(),
- count++),
+ efb_count++),
+ 0);
+ }
+
+ if (g_ActiveConfig.bDumpXFBTarget && is_xfb_copy)
+ {
+ static int xfb_count = 0;
+ entry->texture->Save(StringFromFormat("%sxfb_frame_%i.png",
+ File::GetUserPath(D_DUMPTEXTURES_IDX).c_str(),
+ xfb_count++),
0);
}