diff options
author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2025-02-12 17:09:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-12 17:09:44 +0200 |
commit | 09c60de43c7f6a43607ab9ce3937071d1706830d (patch) | |
tree | 096e954e405009a78ea6ffcbce622c13ac3fa8f8 /indra | |
parent | e708d69fb09963c4829dc6cd095b3e174e268b60 (diff) |
#3210 Fix for "Texture will be downscaled" log message happening too often
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llviewertexturelist.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llviewertexturelist.cpp b/indra/newview/llviewertexturelist.cpp index 0c186c0ed2..12543089c9 100644 --- a/indra/newview/llviewertexturelist.cpp +++ b/indra/newview/llviewertexturelist.cpp @@ -1081,7 +1081,8 @@ F32 LLViewerTextureList::updateImagesCreateTextures(F32 max_time) imagep->mCreatePending = false; mCreateTextureList.pop(); - if (imagep->hasGLTexture() && imagep->getDiscardLevel() < imagep->getDesiredDiscardLevel()) + if (imagep->hasGLTexture() && imagep->getDiscardLevel() < imagep->getDesiredDiscardLevel() && + (imagep->getDesiredDiscardLevel() <= MAX_DISCARD_LEVEL)) { // NOTE: this may happen if the desired discard reduces while a decode is in progress and does not // necessarily indicate a problem, but if log occurrences excede that of dsiplay_stats: FPS, |