summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2022-08-31 11:45:48 -0500
committerDave Parks <davep@lindenlab.com>2022-08-31 11:45:48 -0500
commit5c0e201cd61cf7b29b8871864c8fc7f90c82b5cd (patch)
treed59be03329ce327e13795b6bd2457f584c471272 /indra/newview
parentc9f893b1003b2d9db01362430dbbfa59a91d4fd7 (diff)
SL-18065 WIP -- Clamp virtual size of fetched textures.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llviewertexture.cpp2
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)
{