diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-06-01 22:37:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-01 22:37:08 +0200 |
| commit | fee28e26a1aba3e47f97abbacd16af6c4cadf812 (patch) | |
| tree | 945ce010b4826b0ac068014a6e32be798fa0561f /Source/Core/VideoCommon/AbstractTexture.cpp | |
| parent | 744a5ddfc4118b836b0da06b40022f22bf428a73 (diff) | |
| parent | db712772b7e8685c230499a120a6bd2835f874e1 (diff) | |
Merge pull request #11869 from dvessel/texdump-compression
Add compression option for texture dumps.
Diffstat (limited to 'Source/Core/VideoCommon/AbstractTexture.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/AbstractTexture.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/AbstractTexture.cpp b/Source/Core/VideoCommon/AbstractTexture.cpp index 03b83b21cc..aa0968c3f8 100644 --- a/Source/Core/VideoCommon/AbstractTexture.cpp +++ b/Source/Core/VideoCommon/AbstractTexture.cpp @@ -19,7 +19,7 @@ void AbstractTexture::FinishedRendering() { } -bool AbstractTexture::Save(const std::string& filename, unsigned int level) +bool AbstractTexture::Save(const std::string& filename, unsigned int level, int compression) { // We can't dump compressed textures currently (it would mean drawing them to a RGBA8 // framebuffer, and saving that). TextureCache does not call Save for custom textures @@ -51,7 +51,7 @@ bool AbstractTexture::Save(const std::string& filename, unsigned int level) return Common::SavePNG(filename, reinterpret_cast<const u8*>(readback_texture->GetMappedPointer()), Common::ImageByteFormat::RGBA, level_width, level_height, - static_cast<int>(readback_texture->GetMappedStride())); + static_cast<int>(readback_texture->GetMappedStride()), compression); } bool AbstractTexture::IsCompressedFormat(AbstractTextureFormat format) |
