SL-17547 Fix for crash on shutdown introduced in last commit.
parent
197baebc62
commit
99189ff2d5
|
|
@ -3011,7 +3011,7 @@ bool LLTextureFetch::getRequestFinished(const LLUUID& id, S32& discard_level,
|
|||
bool LLTextureFetch::updateRequestPriority(const LLUUID& id, F32 priority)
|
||||
{
|
||||
LL_PROFILE_ZONE_SCOPED;
|
||||
mRequestQueue.post([=]()
|
||||
mRequestQueue.tryPost([=]()
|
||||
{
|
||||
LLTextureFetchWorker* worker = getWorker(id);
|
||||
if (worker)
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue