diff --git a/src/Core/Resource/CTexture.cpp b/src/Core/Resource/CTexture.cpp index 1c4620f1..8007d3f6 100644 --- a/src/Core/Resource/CTexture.cpp +++ b/src/Core/Resource/CTexture.cpp @@ -290,7 +290,7 @@ void CTexture::CalcLinearSize() mLinearSize = static_cast(mWidth * mHeight * BytesPerPixel); } -uint32 CTexture::CalcTotalSize() +uint32 CTexture::CalcTotalSize() const { const float BytesPerPixel = FormatBPP(mTexelFormat) / 8.f; uint32 MipW = mWidth, MipH = mHeight; diff --git a/src/Core/Resource/CTexture.h b/src/Core/Resource/CTexture.h index c4220e3a..71751de9 100644 --- a/src/Core/Resource/CTexture.h +++ b/src/Core/Resource/CTexture.h @@ -63,7 +63,7 @@ public: // Private private: void CalcLinearSize(); - uint32 CalcTotalSize(); + uint32 CalcTotalSize() const; void CopyGLBuffer(); void DeleteBuffers(); };