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:
Lioncash 2017-06-18 23:33:15 -04:00
parent 07cddf6f7f
commit 59a947d41d
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ size_t AbstractTexture::CalculateHostTextureLevelPitch(AbstractTextureFormat for
}
}
const TextureConfig AbstractTexture::GetConfig() const
const TextureConfig& AbstractTexture::GetConfig() const
{
return m_config;
}

View File

@ -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;