diff options
author | mobserveur <mobserveur@gmail.com> | 2024-05-25 03:52:40 +0200 |
---|---|---|
committer | mobserveur <mobserveur@gmail.com> | 2024-05-25 03:52:40 +0200 |
commit | 4beb64f5205406b8cba12bb3dcfa6e1f1591fffe (patch) | |
tree | 3f3ae4318c04aeaae8390582fff07abbd7f39aff /indra/newview | |
parent | d91f23ae4e5ee744719e6e834cd92ee5abdb089a (diff) |
commented darwin specific code for texture priority
the commented code was causing textures being blurry at short distance
credits: melody owo
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llviewertexturelist.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/newview/llviewertexturelist.cpp b/indra/newview/llviewertexturelist.cpp index ffd1712301..f8825fe7e1 100644 --- a/indra/newview/llviewertexturelist.cpp +++ b/indra/newview/llviewertexturelist.cpp @@ -921,9 +921,9 @@ void LLViewerTextureList::updateImageDecodePriority(LLViewerFetchedTexture* imag vsize /= min_scale; -#if LL_DARWIN - vsize /= 1.f + LLViewerTexture::sDesiredDiscardBias*(1.f+face->getDrawable()->mDistanceWRTCamera*bias_distance_scale); -#else +//#if LL_DARWIN +// vsize /= 1.f + LLViewerTexture::sDesiredDiscardBias*(1.f+face->getDrawable()->mDistanceWRTCamera*bias_distance_scale); +//#else vsize /= LLViewerTexture::sDesiredDiscardBias; vsize /= llmax(1.f, (LLViewerTexture::sDesiredDiscardBias-1.f) * (1.f + face->getDrawable()->mDistanceWRTCamera * bias_distance_scale)); @@ -934,7 +934,7 @@ void LLViewerTextureList::updateImageDecodePriority(LLViewerFetchedTexture* imag { // further reduce by discard bias when off screen or occluded vsize /= LLViewerTexture::sDesiredDiscardBias; } -#endif +//#endif // if a GLTF material is present, ignore that face // as far as this texture stats go, but update the GLTF material // stats |