Commit 05839bee authored by engineer_apple's avatar engineer_apple

correct mipmap generation

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5039 dfc29bdd-3216-0410-991c-e03cc46cb475
parent f56e7fb5
...@@ -56,8 +56,8 @@ CSoftwareTexture2::CSoftwareTexture2(IImage* image, const io::path& name, ...@@ -56,8 +56,8 @@ CSoftwareTexture2::CSoftwareTexture2(IImage* image, const io::path& name,
core::dimension2d<u32> optSize( core::dimension2d<u32> optSize(
OriginalSize.getOptimalSize(0 != (Flags & NP2_SIZE), OriginalSize.getOptimalSize(0 != (Flags & NP2_SIZE),
false, false, false, true,
( Flags & NP2_SIZE ) ? SOFTWARE_DRIVER_2_TEXTURE_MAXSIZE : 0) SOFTWARE_DRIVER_2_TEXTURE_MAXSIZE)
); );
if (OriginalSize == optSize) if (OriginalSize == optSize)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment