CTexture: Make CalcTotalSize() a const member function

This commit is contained in:
Lioncash 2020-06-20 02:44:44 -04:00
parent 5363799228
commit 70b4da4e9d
2 changed files with 2 additions and 2 deletions

View File

@ -290,7 +290,7 @@ void CTexture::CalcLinearSize()
mLinearSize = static_cast<uint32>(mWidth * mHeight * BytesPerPixel); mLinearSize = static_cast<uint32>(mWidth * mHeight * BytesPerPixel);
} }
uint32 CTexture::CalcTotalSize() uint32 CTexture::CalcTotalSize() const
{ {
const float BytesPerPixel = FormatBPP(mTexelFormat) / 8.f; const float BytesPerPixel = FormatBPP(mTexelFormat) / 8.f;
uint32 MipW = mWidth, MipH = mHeight; uint32 MipW = mWidth, MipH = mHeight;

View File

@ -63,7 +63,7 @@ public:
// Private // Private
private: private:
void CalcLinearSize(); void CalcLinearSize();
uint32 CalcTotalSize(); uint32 CalcTotalSize() const;
void CopyGLBuffer(); void CopyGLBuffer();
void DeleteBuffers(); void DeleteBuffers();
}; };