Don't const_cast, instead remove const qualifier from function

Signed-off-by: Yuriy Toporovskyy <toporovskyy.y@gmail.com>
This commit is contained in:
Yuriy Toporovskyy
2021-09-13 11:57:39 -04:00
parent 79af7d3c00
commit dbc1f3bb62
3 changed files with 3 additions and 9 deletions
@@ -87,11 +87,6 @@ namespace AZ
{
}
void SkinnedMeshOutputStreamManager::EnsureInit() const
{
const_cast<SkinnedMeshOutputStreamManager*>(this)->EnsureInit();
}
void SkinnedMeshOutputStreamManager::EnsureInit()
{
if (!m_needsInit)
@@ -156,7 +151,7 @@ namespace AZ
}
}
Data::Asset<RPI::BufferAsset> SkinnedMeshOutputStreamManager::GetBufferAsset() const
Data::Asset<RPI::BufferAsset> SkinnedMeshOutputStreamManager::GetBufferAsset()
{
EnsureInit();
return m_bufferAsset;