summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2024-11-08 14:23:37 +0200
committerGitHub <noreply@github.com>2024-11-08 14:23:37 +0200
commit7c614d0091874afc0555a1e56594671b1e37aaa9 (patch)
treefd3a82bb119a8aad9a4a3128e3bda9b4ae843142
parent4cec03671cd2a4ea3222bfaf4fd755ceaeb14231 (diff)
#3042 crash at LLViewerMediaTexture::setPlaying
-rw-r--r--indra/newview/llviewertexture.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llviewertexture.cpp b/indra/newview/llviewertexture.cpp
index 82fefde0a7..56abe415fe 100644
--- a/indra/newview/llviewertexture.cpp
+++ b/indra/newview/llviewertexture.cpp
@@ -3507,7 +3507,7 @@ void LLViewerMediaTexture::setPlaying(bool playing)
{
LLFace* facep = *iter;
const LLTextureEntry* te = facep->getTextureEntry();
- if (te->getGLTFMaterial())
+ if (te && te->getGLTFMaterial())
{
// PBR material, switch emissive and basecolor
switchTexture(LLRender::EMISSIVE_MAP, *iter);