mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 07:34:45 +00:00
Merge pull request #1102 from Azaezel/mipmap_emission
extraneous mipmap generation prune
This commit is contained in:
commit
fe5bf90153
2 changed files with 2 additions and 2 deletions
|
|
@ -326,7 +326,7 @@ void GBitmap::allocateBitmap(const U32 in_width, const U32 in_height, const bool
|
||||||
|
|
||||||
mNumMipLevels++;
|
mNumMipLevels++;
|
||||||
allocPixels += currWidth * currHeight * mBytesPerPixel;
|
allocPixels += currWidth * currHeight * mBytesPerPixel;
|
||||||
} while (currWidth != 1 || currHeight != 1);
|
} while (currWidth != 1 && currHeight != 1);
|
||||||
}
|
}
|
||||||
AssertFatal(mNumMipLevels <= c_maxMipLevels, "GBitmap::allocateBitmap: too many miplevels");
|
AssertFatal(mNumMipLevels <= c_maxMipLevels, "GBitmap::allocateBitmap: too many miplevels");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1099,7 +1099,7 @@ void GFXTextureManager::_validateTexParams( const U32 width, const U32 height,
|
||||||
currHeight = 1;
|
currHeight = 1;
|
||||||
|
|
||||||
inOutNumMips++;
|
inOutNumMips++;
|
||||||
} while ( currWidth != 1 || currHeight != 1 );
|
} while ( currWidth != 1 && currHeight != 1 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue