mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
rangeclamp for mip guestimates for rendertargets to keep that from getting out of hand
(or try to. gls still not respecting it for some reason)
This commit is contained in:
parent
ff3188daee
commit
f2ffc8bd22
1 changed files with 1 additions and 0 deletions
|
|
@ -1424,6 +1424,7 @@ void GFXTextureManager::_validateTexParams( const U32 width, const U32 height,
|
||||||
inOutNumMips = mFloor(mLog2(mMax(width, height))) + 1;
|
inOutNumMips = mFloor(mLog2(mMax(width, height))) + 1;
|
||||||
else if (inOutNumMips > 1) //capped
|
else if (inOutNumMips > 1) //capped
|
||||||
inOutNumMips = mMin(inOutNumMips,mFloor(mLog2(mMax(width, height))) + 1);
|
inOutNumMips = mMin(inOutNumMips,mFloor(mLog2(mMax(width, height))) + 1);
|
||||||
|
inOutNumMips = mClampF(inOutNumMips, 1, 13);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue