diff options
| author | iwubcode <iwubcode@users.noreply.github.com> | 2023-11-16 01:23:59 -0600 |
|---|---|---|
| committer | iwubcode <iwubcode@users.noreply.github.com> | 2023-11-26 16:35:03 -0600 |
| commit | fb86c6342e02c7cdc297ecaa7f2eb365c846e741 (patch) | |
| tree | 92500c0fea377fbc8fb1a7f436b7b209927fa2ab /Source/Core/VideoCommon/AbstractTexture.cpp | |
| parent | 1a2d0882d04446550687424e36a81a2c16a6a00d (diff) | |
VideoCommon: move texture dump function out of texture cache to its own free function so it can be used elsewhere. Doing this change may also slightly improve performance of this operation
Diffstat (limited to 'Source/Core/VideoCommon/AbstractTexture.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/AbstractTexture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/AbstractTexture.cpp b/Source/Core/VideoCommon/AbstractTexture.cpp index b706772a4f..416af06123 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, int compression) +bool AbstractTexture::Save(const std::string& filename, unsigned int level, int compression) const { // 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 |
