CTexture: Make CalcTotalSize() a const member function
This commit is contained in:
parent
5363799228
commit
70b4da4e9d
|
@ -290,7 +290,7 @@ void CTexture::CalcLinearSize()
|
|||
mLinearSize = static_cast<uint32>(mWidth * mHeight * BytesPerPixel);
|
||||
}
|
||||
|
||||
uint32 CTexture::CalcTotalSize()
|
||||
uint32 CTexture::CalcTotalSize() const
|
||||
{
|
||||
const float BytesPerPixel = FormatBPP(mTexelFormat) / 8.f;
|
||||
uint32 MipW = mWidth, MipH = mHeight;
|
||||
|
|
|
@ -63,7 +63,7 @@ public:
|
|||
// Private
|
||||
private:
|
||||
void CalcLinearSize();
|
||||
uint32 CalcTotalSize();
|
||||
uint32 CalcTotalSize() const;
|
||||
void CopyGLBuffer();
|
||||
void DeleteBuffers();
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue