Don't show negative amount of available memory in texture console
parent
6c5231d56e
commit
c6c2a51e9c
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue