summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-03-07 17:28:04 -0600
committerDave Parks <davep@lindenlab.com>2011-03-07 17:28:04 -0600
commita9412b6d2e43175081a764493126ac716ee828d3 (patch)
tree9e77b9eff9229fd40fe319d40b7fbebc801dc18c /indra/newview
parentf0f126aa4f67264c42057ded8bd59c377a54356e (diff)
SH-1085 Potential fix for crash when disabling mirror.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llselectmgr.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llselectmgr.cpp b/indra/newview/llselectmgr.cpp
index 93c9131424..e57e38d141 100644
--- a/indra/newview/llselectmgr.cpp
+++ b/indra/newview/llselectmgr.cpp
@@ -5468,7 +5468,10 @@ void pushWireframe(LLDrawable* drawable)
for (S32 i = 0; i < drawable->getNumFaces(); ++i)
{
LLFace* face = drawable->getFace(i);
- pushVerts(face, LLVertexBuffer::MAP_VERTEX);
+ if (face->verify())
+ {
+ pushVerts(face, LLVertexBuffer::MAP_VERTEX);
+ }
}
}
}