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

@ -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
{