mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-20 04:34:48 +00:00
don't try to generate mipmaps for images that aren't n^2 dureing preview map generation
This commit is contained in:
parent
ad5d0b6d1b
commit
5f0551b831
|
|
@ -1385,8 +1385,8 @@ DefineEngineFunction(saveScaledImage, bool, (const char* bitmapSource, const cha
|
|||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
image->extrudeMipLevels();
|
||||
if (isPow2(image->getWidth())&& isPow2(image->getHeight()))
|
||||
image->extrudeMipLevels();
|
||||
|
||||
U32 mipCount = image->getNumMipLevels();
|
||||
U32 targetMips = mFloor(mLog2((F32)resolutionSize)) + 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue