aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llface.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2009-06-13 13:17:14 -0500
committerJacek Antonelli2009-06-13 13:17:20 -0500
commit0517fe4322443bdc317f8185590a63134e3f8394 (patch)
tree942c9c26d0792accc928010a113d123c5409659b /linden/indra/newview/llface.cpp
parentSecond Life viewer sources 1.23.2-RC (diff)
downloadmeta-impy-0517fe4322443bdc317f8185590a63134e3f8394.zip
meta-impy-0517fe4322443bdc317f8185590a63134e3f8394.tar.gz
meta-impy-0517fe4322443bdc317f8185590a63134e3f8394.tar.bz2
meta-impy-0517fe4322443bdc317f8185590a63134e3f8394.tar.xz
Second Life viewer sources 1.23.3-RC
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 {