mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
Merge pull request #566 from Azaezel/alpha40/previewPixelfix
don't try to generate mipmaps for images that aren't n^2 dureing prev…
This commit is contained in:
commit
1e7a932a9e
1 changed files with 2 additions and 2 deletions
|
|
@ -1385,8 +1385,8 @@ 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();
|
||||||
U32 targetMips = mFloor(mLog2((F32)resolutionSize)) + 1;
|
U32 targetMips = mFloor(mLog2((F32)resolutionSize)) + 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue