diff options
author | Dave Parks <davep@lindenlab.com> | 2022-08-31 11:45:48 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2022-08-31 11:45:48 -0500 |
commit | 5c0e201cd61cf7b29b8871864c8fc7f90c82b5cd (patch) | |
tree | d59be03329ce327e13795b6bd2457f584c471272 /indra/newview/llviewertexture.cpp | |
parent | c9f893b1003b2d9db01362430dbbfa59a91d4fd7 (diff) |
SL-18065 WIP -- Clamp virtual size of fetched textures.
Diffstat (limited to 'indra/newview/llviewertexture.cpp')
-rw-r--r-- | indra/newview/llviewertexture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llviewertexture.cpp b/indra/newview/llviewertexture.cpp index 62e5fedb7d..1a0471186f 100644 --- a/indra/newview/llviewertexture.cpp +++ b/indra/newview/llviewertexture.cpp @@ -808,7 +808,7 @@ void LLViewerTexture::addTextureStats(F32 virtual_size, BOOL needs_gltexture) co mNeedsGLTexture = TRUE; } - llassert(virtual_size <= LLViewerFetchedTexture::sMaxVirtualSize); + virtual_size = llmin(virtual_size, LLViewerFetchedTexture::sMaxVirtualSize); if (virtual_size > mMaxVirtualSize) { |