summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-08-23 02:20:12 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-08-23 02:20:12 +0300
commit720504595a09a94d10ff07926e8d1274dcab440c (patch)
treefa851453aa8c2563b2f86fd9620bfc621584ccd5 /indra
parent226a0025e9c8f4cf612e1781fb083e32939a32b4 (diff)
SL-20189 Crash at LLViewerMediaTexture::addFace
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llviewertexture.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llviewertexture.cpp b/indra/newview/llviewertexture.cpp
index 97ff5f58e4..18c3a582a2 100644
--- a/indra/newview/llviewertexture.cpp
+++ b/indra/newview/llviewertexture.cpp
@@ -3742,7 +3742,10 @@ void LLViewerMediaTexture::addFace(U32 ch, LLFace* facep)
if(te && te->getID().notNull()) //should have a texture
{
- LL_ERRS() << "The face does not have a valid texture before media texture." << LL_ENDL;
+ LL_WARNS_ONCE() << "The face's texture " << te->getID() << " is not valid. Face must have a valid texture before media texture." << LL_ENDL;
+ // This might break the object, but it likely isn't a 'recoverable' situation.
+ LLViewerFetchedTexture* tex = LLViewerTextureManager::getFetchedTexture(te->getID());
+ mTextureList.push_back(tex);
}
}