mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-18 02:37:56 -05:00
Fix Cubemap mipmap sizes
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user