SL-18065 WIP -- Clamp virtual size of fetched textures.

master
Dave Parks 2022-08-31 11:45:48 -05:00
parent c9f893b100
commit 5c0e201cd6
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{