Fixed SHTextureLoader loading wrong mipmap offsets

This commit is contained in:
Kah Wei 2022-09-27 16:45:35 +08:00
parent ecd1c10fea
commit 14cd0b4be9
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ namespace SHADE
for (auto i{0}; i < file.GetMipCount(); ++i)
{
mipOff.push_back(totalBytes);
mipOff[i] = totalBytes;
totalBytes += file.GetImageData(i, 0)->m_memSlicePitch;
}