Fixed SHTextureLoader loading wrong mipmap offsets
This commit is contained in:
parent
ecd1c10fea
commit
14cd0b4be9
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue