diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2024-03-19 21:46:12 +0200 |
---|---|---|
committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2024-03-19 23:16:44 +0200 |
commit | ee7011c968abdf98c2d97f4fee1cadc48a5edb39 (patch) | |
tree | 925144f1002d87730067df0a15ef386c7906f2dc /indra/newview | |
parent | 0cc3a4bf680da63f48a1fcaf1c4b94ce4d8dffb7 (diff) |
viewer#1000 Textures on large prims lose resolution
Value was selected experimentally. I suspect it needs to be even
smaller or needs to take face's size (extents) into account, but lack
test cases. Will ask QA to experiment around with scaling.
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llviewertexturelist.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llviewertexturelist.cpp b/indra/newview/llviewertexturelist.cpp index 57daeccaf7..0e7c19c5e1 100644 --- a/indra/newview/llviewertexturelist.cpp +++ b/indra/newview/llviewertexturelist.cpp @@ -902,7 +902,7 @@ void LLViewerTextureList::updateImageDecodePriority(LLViewerFetchedTexture* imag // scale desired texture resolution higher or lower depending on texture scale const LLTextureEntry* te = face->getTextureEntry(); F32 min_scale = te ? llmin(fabsf(te->getScaleS()), fabsf(te->getScaleT())) : 1.f; - min_scale = llmax(min_scale*min_scale, 0.1f); + min_scale = llclamp(min_scale*min_scale, 0.1f, 25.f); vsize /= min_scale; vsize /= LLViewerTexture::sDesiredDiscardBias; |