summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.cpp
diff options
context:
space:
mode:
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 5a298273d3..fdf3c0e6b3 100644
--- a/Source/Core/VideoCommon/TextureCacheBase.cpp
+++ b/Source/Core/VideoCommon/TextureCacheBase.cpp
@@ -920,8 +920,15 @@ void TextureCacheBase::DumpTexture(TCacheEntry* entry, std::string basename, uns
if (level > 0)
{
+ if (!g_ActiveConfig.bDumpMipmapTextures)
+ return;
basename += fmt::format("_mip{}", level);
}
+ else
+ {
+ if (!g_ActiveConfig.bDumpBaseTextures)
+ return;
+ }
const std::string filename = fmt::format("{}/{}.png", szDir, basename);
if (File::Exists(filename))