diff options
author | Bryan O'Sullivan <bos@lindenlab.com> | 2009-06-22 15:10:15 -0700 |
---|---|---|
committer | Bryan O'Sullivan <bos@lindenlab.com> | 2009-06-22 15:10:15 -0700 |
commit | b012a60951f612b9a2c912dd64c00a3b09af5d3f (patch) | |
tree | 7abaf82d1eed4e8cb19458b76325bd2bb4d0ec6d /indra/newview/llface.cpp | |
parent | baa73fddd9287ddafd2d31551cb253b355ed910a (diff) | |
parent | 85758bdfcf4dc1bdf9845cd4192dc6035acb5795 (diff) |
Merge with trunk
Diffstat (limited to 'indra/newview/llface.cpp')
-rw-r--r-- | indra/newview/llface.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp index 3dfe6a2820..69edccacf0 100644 --- a/indra/newview/llface.cpp +++ b/indra/newview/llface.cpp @@ -1150,6 +1150,21 @@ BOOL LLFace::getGeometryVolume(const LLVolume& volume, BOOL LLFace::verify(const U32* indices_array) const { BOOL ok = TRUE; + + if( mVertexBuffer.isNull() ) + { + if( mGeomCount ) + { + // This happens before teleports as faces are torn down. + // Stop the crash in DEV-31893 with a null pointer check, + // but present this info. + // To clean up the log, the geometry could be cleared, or the + // face could otherwise be marked for no ::verify. + llinfos << "Face with no vertex buffer and " << mGeomCount << " mGeomCount" << llendl; + } + return TRUE; + } + // First, check whether the face data fits within the pool's range. if ((mGeomIndex + mGeomCount) > mVertexBuffer->getNumVerts()) { |