瀏覽代碼

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)

AzaezelX 1 月之前
父節點
當前提交
f2ffc8bd22
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Engine/source/gfx/gfxTextureManager.cpp

+ 1 - 0
Engine/source/gfx/gfxTextureManager.cpp

@@ -1424,6 +1424,7 @@ void GFXTextureManager::_validateTexParams( const U32 width, const U32 height,
             inOutNumMips = mFloor(mLog2(mMax(width, height))) + 1;
          else if (inOutNumMips > 1) //capped
             inOutNumMips = mMin(inOutNumMips,mFloor(mLog2(mMax(width, height))) + 1);
+         inOutNumMips = mClampF(inOutNumMips, 1, 13);
       }
       else
       {