From fb86c6342e02c7cdc297ecaa7f2eb365c846e741 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Thu, 16 Nov 2023 01:23:59 -0600 Subject: 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 --- Source/Core/VideoCommon/AbstractTexture.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/AbstractTexture.h') 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 GetRect() const { return m_config.GetRect(); } MathUtil::Rectangle 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); -- cgit v1.2.3