summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.cpp
diff options
context:
space:
mode:
authorJules Blok <jules.blok@gmail.com>2015-05-02 12:10:40 +0200
committerJules Blok <jules.blok@gmail.com>2015-05-02 13:23:33 +0200
commit54f44439715975d5b6e6e15ad7bad5c20ae625ef (patch)
treee862c6773fe49190f3cc7687d5e0d93a49c7b15c /Source/Core/VideoCommon/TextureCacheBase.cpp
parentd69a4697fad25c0103ac5b3a78b04197b2868b7b (diff)
VideoCommon: Implement EFB dumping for both backends.
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
-rw-r--r--Source/Core/VideoCommon/TextureCacheBase.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp
index 53168f45e7..251ee54783 100644
--- a/Source/Core/VideoCommon/TextureCacheBase.cpp
+++ b/Source/Core/VideoCommon/TextureCacheBase.cpp
@@ -873,6 +873,13 @@ void TextureCache::CopyRenderTargetToTexture(u32 dstAddr, unsigned int dstFormat
entry->FromRenderTarget(dstAddr, dstFormat, srcFormat, srcRect, isIntensity, scaleByHalf, cbufid, colmat);
+ if (g_ActiveConfig.bDumpEFBTarget)
+ {
+ static int count = 0;
+ entry->Save(StringFromFormat("%sefb_frame_%i.png", File::GetUserPath(D_DUMPTEXTURES_IDX).c_str(),
+ count++), 0);
+ }
+
textures.insert(TexCache::value_type(dstAddr, entry));
}