Don't show negative amount of available memory in texture console

meow-7.2.2
Ansariel 2024-07-30 10:20:07 +02:00
parent 6c5231d56e
commit c6c2a51e9c
1 changed files with 1 additions and 1 deletions

View File

@ -559,7 +559,7 @@ void LLViewerTexture::updateClass()
// try to leave half a GB for everyone else, but keep at least 768MB for ourselves
F32 target = llmax(budget - 512.f, MIN_VRAM_BUDGET);
sFreeVRAMMegabytes = target - used;
sFreeVRAMMegabytes = llmax(target - used, 0.f);
F32 over_pct = llmax((used-target) / target, 0.f);
// <FS:Ansariel> Restrict texture memory by available physical system memory