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 @@ -791,8 +791,10 @@ void LLVOVolume::updateTextureVirtualSize(bool forced)
791
791
for (S32 i = 0 ; i < num_faces; i++)
792
792
{
793
793
LLFace* face = mDrawable ->getFace (i);
794
- if (!face) continue ;
794
+ if (!face || face-> mExtents [ 0 ]. equals3 (face-> mExtents [ 1 ]) ) continue ;
795
795
const LLTextureEntry *te = face->getTextureEntry ();
796
+ if (!te) continue ;
797
+
796
798
LLViewerTexture *imagep = nullptr ;
797
799
U32 ch_min;
798
800
U32 ch_max;
@@ -811,8 +813,7 @@ void LLVOVolume::updateTextureVirtualSize(bool forced)
811
813
// Get _a_ non-null texture if possible (usually diffuse/basecolor, but could be something else)
812
814
imagep = face->getTexture (ch);
813
815
}
814
- if (!imagep || !te ||
815
- face->mExtents [0 ].equals3 (face->mExtents [1 ]))
816
+ if (!imagep)
816
817
{
817
818
continue ;
818
819
}
You can’t perform that action at this time.
0 commit comments