diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2024-11-19 22:22:43 +0200 |
---|---|---|
committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2024-11-19 23:28:09 +0200 |
commit | 8d52d06fcbffa33dad4412480471275068387c87 (patch) | |
tree | 72da85d5c0a8a9255b287b92b3bdd5c34c724c3f /indra/newview/llviewertexturelist.cpp | |
parent | 7be9c43f286671893ff0a9dee13d721a6731255b (diff) |
Crash at getDiscardLevel()
Diffstat (limited to 'indra/newview/llviewertexturelist.cpp')
-rw-r--r-- | indra/newview/llviewertexturelist.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llviewertexturelist.cpp b/indra/newview/llviewertexturelist.cpp index 5f678d4008..2dc0458d99 100644 --- a/indra/newview/llviewertexturelist.cpp +++ b/indra/newview/llviewertexturelist.cpp @@ -1061,7 +1061,7 @@ F32 LLViewerTextureList::updateImagesCreateTextures(F32 max_time) imagep->mCreatePending = false; mCreateTextureList.pop(); - if (imagep->getDiscardLevel() < imagep->getDesiredDiscardLevel()) + if (imagep->hasGLTexture() && imagep->getDiscardLevel() < imagep->getDesiredDiscardLevel()) { LL_WARNS_ONCE("Texture") << "Texture will be downscaled immediately after loading." << LL_ENDL; imagep->scaleDown(); |