AbstractTexture: Return config by const reference
Returning by const value isn't really necessary (and usually an indicator const reference was intended).
This commit is contained in:
1 parent
07cddf6f7f
commit
59a947d41d
2 files changed
+2
-2
No files matched your search
@@ -38,7 +38,7 @@ size_t AbstractTexture::CalculateHostTextureLevelPitch(AbstractTextureFormat for
|
||||
}
|
||||
}
|
||||
|
||||
const TextureConfig AbstractTexture::GetConfig() const
|
||||
const TextureConfig& AbstractTexture::GetConfig() const
|
||||
{
|
||||
return m_config;
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user