summaryrefslogtreecommitdiff
path: root/indra/newview/llviewertexture.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2022-06-06 21:12:48 -0500
committerDave Parks <davep@lindenlab.com>2022-06-06 21:12:48 -0500
commit5259fa811c11892ef150f853c9de5a8927fa68a6 (patch)
treeaee60f9a22bc216fda93f4f83d3477aa6895ec81 /indra/newview/llviewertexture.cpp
parentf4473528eb3f37b4bec3c4cda2a83d9ca94ab133 (diff)
SL-17486 Force desired discard level to 0 for high boosted textures (fix for fuzzy terrain textures etc).
Diffstat (limited to 'indra/newview/llviewertexture.cpp')
-rw-r--r--indra/newview/llviewertexture.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llviewertexture.cpp b/indra/newview/llviewertexture.cpp
index 0544bceb9f..2eb36a42be 100644
--- a/indra/newview/llviewertexture.cpp
+++ b/indra/newview/llviewertexture.cpp
@@ -1884,6 +1884,16 @@ bool LLViewerFetchedTexture::isActiveFetching()
return mFetchState > 7 && mFetchState < 10 && monitor_enabled; //in state of WAIT_HTTP_REQ or DECODE_IMAGE.
}
+void LLViewerFetchedTexture::setBoostLevel(S32 level)
+{
+ LLViewerTexture::setBoostLevel(level);
+
+ if (level >= LLViewerTexture::BOOST_HIGH)
+ {
+ mDesiredDiscardLevel = 0;
+ }
+}
+
bool LLViewerFetchedTexture::updateFetch()
{
LL_PROFILE_ZONE_SCOPED_CATEGORY_TEXTURE;