diff options
| author | Lioncash <mathew1800@gmail.com> | 2017-06-18 23:33:15 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2017-06-18 23:38:42 -0400 |
| commit | 59a947d41db3d5c603deeb5ffc40afec0ecc61f1 (patch) | |
| tree | 526c5852088ea361d71279fb4e9f6018d740152f /Source/Core/VideoCommon/AbstractTexture.h | |
| parent | 07cddf6f7fe7399be9c3ba279726afcb2b052d63 (diff) | |
AbstractTexture: Return config by const reference
Returning by const value isn't really necessary (and usually an indicator const reference was intended).
Diffstat (limited to 'Source/Core/VideoCommon/AbstractTexture.h')
| -rw-r--r-- | Source/Core/VideoCommon/AbstractTexture.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/AbstractTexture.h b/Source/Core/VideoCommon/AbstractTexture.h index 433aae60ac..94c082af70 100644 --- a/Source/Core/VideoCommon/AbstractTexture.h +++ b/Source/Core/VideoCommon/AbstractTexture.h @@ -28,7 +28,7 @@ public: static bool IsCompressedHostTextureFormat(AbstractTextureFormat format); static size_t CalculateHostTextureLevelPitch(AbstractTextureFormat format, u32 row_length); - const TextureConfig GetConfig() const; + const TextureConfig& GetConfig() const; protected: const TextureConfig m_config; |
