aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llface.cpp')
-rw-r--r--linden/indra/newview/llface.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/linden/indra/newview/llface.cpp b/linden/indra/newview/llface.cpp
index 3dfe6a2..69edcca 100644
--- a/linden/indra/newview/llface.cpp
+++ b/linden/indra/newview/llface.cpp
@@ -1150,6 +1150,21 @@ BOOL LLFace::getGeometryVolume(const LLVolume& volume,
1150BOOL LLFace::verify(const U32* indices_array) const 1150BOOL LLFace::verify(const U32* indices_array) const
1151{ 1151{
1152 BOOL ok = TRUE; 1152 BOOL ok = TRUE;
1153
1154 if( mVertexBuffer.isNull() )
1155 {
1156 if( mGeomCount )
1157 {
1158 // This happens before teleports as faces are torn down.
1159 // Stop the crash in DEV-31893 with a null pointer check,
1160 // but present this info.
1161 // To clean up the log, the geometry could be cleared, or the
1162 // face could otherwise be marked for no ::verify.
1163 llinfos << "Face with no vertex buffer and " << mGeomCount << " mGeomCount" << llendl;
1164 }
1165 return TRUE;
1166 }
1167
1153 // First, check whether the face data fits within the pool's range. 1168 // First, check whether the face data fits within the pool's range.
1154 if ((mGeomIndex + mGeomCount) > mVertexBuffer->getNumVerts()) 1169 if ((mGeomIndex + mGeomCount) > mVertexBuffer->getNumVerts())
1155 { 1170 {