summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/AbstractTexture.h
diff options
context:
space:
mode:
authoriwubcode <iwubcode@users.noreply.github.com>2023-11-16 01:23:59 -0600
committeriwubcode <iwubcode@users.noreply.github.com>2023-11-26 16:35:03 -0600
commitfb86c6342e02c7cdc297ecaa7f2eb365c846e741 (patch)
tree92500c0fea377fbc8fb1a7f436b7b209927fa2ab /Source/Core/VideoCommon/AbstractTexture.h
parent1a2d0882d04446550687424e36a81a2c16a6a00d (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.h')
-rw-r--r--Source/Core/VideoCommon/AbstractTexture.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/AbstractTexture.h b/Source/Core/VideoCommon/AbstractTexture.h
index 3ebf1465fc..6ee9ff4b28 100644
--- a/Source/Core/VideoCommon/AbstractTexture.h
+++ b/Source/Core/VideoCommon/AbstractTexture.h
@@ -38,7 +38,7 @@ public:
MathUtil::Rectangle<int> GetRect() const { return m_config.GetRect(); }
MathUtil::Rectangle<int> GetMipRect(u32 level) const { return m_config.GetMipRect(level); }
bool IsMultisampled() const { return m_config.IsMultisampled(); }
- bool Save(const std::string& filename, unsigned int level, int compression = 6);
+ bool Save(const std::string& filename, unsigned int level, int compression = 6) const;
static bool IsCompressedFormat(AbstractTextureFormat format);
static bool IsDepthFormat(AbstractTextureFormat format);