Skip to content

Commit

Permalink
#3210 Fix for "Texture will be downscaled" log message happening too …
Browse files Browse the repository at this point in the history
…often
  • Loading branch information
maxim-productengine committed Feb 12, 2025
1 parent e708d69 commit cbdf084
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion indra/newview/llviewertexturelist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit cbdf084

Please sign in to comment.