Fix Cubemap mipmap sizes

This commit is contained in:
Jan
2020-09-08 12:34:54 +02:00
parent d35560ccd7
commit e7898a1f3c
6 changed files with 5 additions and 11 deletions

View File

@ -220,7 +220,7 @@ public:
for (auto mipLevel = 0; mipLevel < mipCount; mipLevel++)
{
const auto* buffer = m_texture->GetBufferForMipLevel(mipLevel);
const auto mipLevelSize = m_texture->GetSizeOfMipLevel(mipLevel);
const auto mipLevelSize = m_texture->GetSizeOfMipLevel(mipLevel) * m_texture->GetFaceCount();
m_file->Write(buffer, 1, mipLevelSize);
}
}