summaryrefslogtreecommitdiff
path: root/indra/newview/llface.cpp
diff options
context:
space:
mode:
authorBryan O'Sullivan <bos@lindenlab.com>2009-06-22 15:10:15 -0700
committerBryan O'Sullivan <bos@lindenlab.com>2009-06-22 15:10:15 -0700
commitb012a60951f612b9a2c912dd64c00a3b09af5d3f (patch)
tree7abaf82d1eed4e8cb19458b76325bd2bb4d0ec6d /indra/newview/llface.cpp
parentbaa73fddd9287ddafd2d31551cb253b355ed910a (diff)
parent85758bdfcf4dc1bdf9845cd4192dc6035acb5795 (diff)
Merge with trunk
Diffstat (limited to 'indra/newview/llface.cpp')
-rw-r--r--indra/newview/llface.cpp15
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())
{