don't try to generate mipmaps for images that aren't n^2 dureing preview map generation

This commit is contained in:
AzaezelX 2021-09-10 18:18:30 -05:00
parent ad5d0b6d1b
commit 5f0551b831

View file

@ -1385,7 +1385,7 @@ DefineEngineFunction(saveScaledImage, bool, (const char* bitmapSource, const cha
} }
} }
}*/ }*/
if (isPow2(image->getWidth())&& isPow2(image->getHeight()))
image->extrudeMipLevels(); image->extrudeMipLevels();
U32 mipCount = image->getNumMipLevels(); U32 mipCount = image->getNumMipLevels();