diff options
author | Dave Parks <davep@lindenlab.com> | 2022-08-05 16:58:22 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2022-08-05 16:58:22 -0500 |
commit | d048795fce3ab83989cb909fde02014f1442cc84 (patch) | |
tree | 27c7e222c05d33e3dd36e43f2f20f4cbcda53ca3 /indra/newview/llviewerobject.cpp | |
parent | 92b09e3a164e59f5a0c4e436d044590513ddc6bd (diff) |
SL-17870 Nudge PBR material textures so they start downloading. (and add missing validation code for reflection probes network data).
Diffstat (limited to 'indra/newview/llviewerobject.cpp')
-rw-r--r-- | indra/newview/llviewerobject.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/newview/llviewerobject.cpp b/indra/newview/llviewerobject.cpp index 753fb014c9..bdc47e0c50 100644 --- a/indra/newview/llviewerobject.cpp +++ b/indra/newview/llviewerobject.cpp @@ -4903,7 +4903,14 @@ void LLViewerObject::updateTEMaterialTextures(U8 te) auto fetch_texture = [](const LLUUID& id) { - return LLViewerTextureManager::getFetchedTexture(id, FTT_DEFAULT, TRUE, LLGLTexture::BOOST_ALM, LLViewerTexture::LOD_TEXTURE); + LLViewerFetchedTexture* img = nullptr; + if (id.notNull()) + { + img = LLViewerTextureManager::getFetchedTexture(id, FTT_DEFAULT, TRUE, LLGLTexture::BOOST_ALM, LLViewerTexture::LOD_TEXTURE); + img->addTextureStats(64.f * 64.f, TRUE); + } + + return img; }; LLGLTFMaterial* mat = getTE(te)->getGLTFMaterial(); |