mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 06:49:28 -05:00
Fix Cubemap mipmap sizes
This commit is contained in:
@ -185,7 +185,7 @@ void ObjLoaderT6::LoadImageFromIwi(T6::GfxImage* image, ISearchPath* searchPath,
|
||||
|
||||
const int textureMipCount = loadedTexture->GetMipMapCount();
|
||||
for(int mipLevel = 0; mipLevel < textureMipCount; mipLevel++)
|
||||
image->loadedSize += loadedTexture->GetSizeOfMipLevel(mipLevel);
|
||||
image->loadedSize += loadedTexture->GetSizeOfMipLevel(mipLevel) * loadedTexture->GetFaceCount();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user