summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.cpp
diff options
context:
space:
mode:
authorjoon <126473+dvessel@users.noreply.github.com>2023-02-09 09:49:25 -0500
committerjoon <126473+dvessel@users.noreply.github.com>2023-06-01 16:01:11 -0400
commitdb712772b7e8685c230499a120a6bd2835f874e1 (patch)
tree8c5cb438b8a9a36aaafa0bf3923a1dcf2fdee4dd /Source/Core/VideoCommon/TextureCacheBase.cpp
parent6743ca8e098268e7a11f26d626a15a09bd342577 (diff)
Add compression option for texture dumps.
Enable through command line options: -C Graphics.Settings.TexturePNGCompressionLevel=[0-9] Or from GFX.ini: [Settings] TexturePNGCompressionLevel=[0-9] @see #10792
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
-rw-r--r--Source/Core/VideoCommon/TextureCacheBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp
index bcffe8e4ca..57808f9de6 100644
--- a/Source/Core/VideoCommon/TextureCacheBase.cpp
+++ b/Source/Core/VideoCommon/TextureCacheBase.cpp
@@ -1023,7 +1023,7 @@ void TextureCacheBase::DumpTexture(RcTcacheEntry& entry, std::string basename, u
if (File::Exists(filename))
return;
- entry->texture->Save(filename, level);
+ entry->texture->Save(filename, level, Config::Get(Config::GFX_TEXTURE_PNG_COMPRESSION_LEVEL));
}
// Helper for checking if a BPMemory TexMode0 register is set to Point