File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -784,8 +784,10 @@ void LLVOVolume::updateTextureVirtualSize(bool forced)
784
784
for (S32 i = 0 ; i < num_faces; i++)
785
785
{
786
786
LLFace* face = mDrawable ->getFace (i);
787
- if (!face) continue ;
787
+ if (!face || face-> mExtents [ 0 ]. equals3 (face-> mExtents [ 1 ]) ) continue ;
788
788
const LLTextureEntry *te = face->getTextureEntry ();
789
+ if (!te) continue ;
790
+
789
791
LLViewerTexture *imagep = nullptr ;
790
792
U32 ch_min;
791
793
U32 ch_max;
@@ -804,8 +806,7 @@ void LLVOVolume::updateTextureVirtualSize(bool forced)
804
806
// Get _a_ non-null texture if possible (usually diffuse/basecolor, but could be something else)
805
807
imagep = face->getTexture (ch);
806
808
}
807
- if (!imagep || !te ||
808
- face->mExtents [0 ].equals3 (face->mExtents [1 ]))
809
+ if (!imagep)
809
810
{
810
811
continue ;
811
812
}
You can’t perform that action at this time.
0 commit comments