diff options
author | Rye <rye@lindenlab.com> | 2024-11-03 10:37:11 -0500 |
---|---|---|
committer | Rye <rye@lindenlab.com> | 2024-11-03 10:37:11 -0500 |
commit | 8b7825280004ef694ebcf177329319c51d721462 (patch) | |
tree | d64271087f5c7d0c8c42eb2207617ce9246aa0cb /indra | |
parent | afa1305c337186941317b5ee29881de92cf86814 (diff) |
Fix crash from null texture entry during updateTextureVirtualSize
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llvovolume.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index 39728b6818..6d33f411ed 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -784,8 +784,10 @@ void LLVOVolume::updateTextureVirtualSize(bool forced) for (S32 i = 0; i < num_faces; i++) { LLFace* face = mDrawable->getFace(i); - if (!face) continue; + if (!face || face->mExtents[0].equals3(face->mExtents[1])) continue; const LLTextureEntry *te = face->getTextureEntry(); + if (!te) continue; + LLViewerTexture *imagep = nullptr; U32 ch_min; U32 ch_max; @@ -804,8 +806,7 @@ void LLVOVolume::updateTextureVirtualSize(bool forced) // Get _a_ non-null texture if possible (usually diffuse/basecolor, but could be something else) imagep = face->getTexture(ch); } - if (!imagep || !te || - face->mExtents[0].equals3(face->mExtents[1])) + if (!imagep) { continue; } |