diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2024-01-06 00:05:53 +0200 |
---|---|---|
committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2024-01-08 19:13:14 +0200 |
commit | d19330641e6979b55863b5d0dbd2924709181ffc (patch) | |
tree | a0e4a6b2ffb0b4c334fdd39854b102ce12022d37 /indra/newview | |
parent | 51088cde7f5a0bdaf9249bfdd5d31b9b212403ab (diff) |
SL-20735 Fix blury profile pictures
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llfloaterprofiletexture.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llfloaterprofiletexture.cpp b/indra/newview/llfloaterprofiletexture.cpp index bf1f56a6d1..a78df1015a 100644 --- a/indra/newview/llfloaterprofiletexture.cpp +++ b/indra/newview/llfloaterprofiletexture.cpp @@ -139,6 +139,13 @@ void LLFloaterProfileTexture::draw() static LLCachedControl<F32> max_opacity(gSavedSettings, "PickerContextOpacity", 0.4f); drawConeToOwner(mContextConeOpacity, max_opacity, owner); + if (mImage.notNull()) + { + // Pump the texture priority + mImage->addTextureStats(MAX_IMAGE_AREA); + mImage->setKnownDrawSize(LLViewerTexture::MAX_IMAGE_SIZE_DEFAULT, LLViewerTexture::MAX_IMAGE_SIZE_DEFAULT); + } + LLFloater::draw(); } @@ -176,6 +183,8 @@ void LLFloaterProfileTexture::loadAsset(const LLUUID &image_id) mImageID = image_id; mImage = LLViewerTextureManager::getFetchedTexture(mImageID, FTT_DEFAULT, MIPMAP_TRUE, LLGLTexture::BOOST_NONE, LLViewerTexture::LOD_TEXTURE); mImageOldBoostLevel = mImage->getBoostLevel(); + mImage->setKnownDrawSize(LLViewerTexture::MAX_IMAGE_SIZE_DEFAULT, LLViewerTexture::MAX_IMAGE_SIZE_DEFAULT); + mImage->forceToSaveRawImage(0); if ((mImage->getFullWidth() * mImage->getFullHeight()) == 0) { |