summaryrefslogtreecommitdiff
path: root/indra/newview/llviewertexture.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2022-06-07 15:24:40 -0500
committerDave Parks <davep@lindenlab.com>2022-06-07 15:24:40 -0500
commit99189ff2d5e96434cdc58115bbc03614f8e50773 (patch)
treeabb936b8e0e180f9feefcfa0306364f843913ccd /indra/newview/llviewertexture.cpp
parent197baebc62d1e4b922730266f77f4e6b555e2cac (diff)
SL-17547 Fix for crash on shutdown introduced in last commit.
Diffstat (limited to 'indra/newview/llviewertexture.cpp')
-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 ae480bcc35..b7633545f9 100644
--- a/indra/newview/llviewertexture.cpp
+++ b/indra/newview/llviewertexture.cpp
@@ -653,7 +653,10 @@ void LLViewerTexture::cleanup()
{
notifyAboutMissingAsset();
- LLAppViewer::getTextureFetch()->updateRequestPriority(mID, 0.f);
+ if (LLAppViewer::getTextureFetch())
+ {
+ LLAppViewer::getTextureFetch()->updateRequestPriority(mID, 0.f);
+ }
mFaceList[LLRender::DIFFUSE_MAP].clear();
mFaceList[LLRender::NORMAL_MAP].clear();