summaryrefslogtreecommitdiff
path: root/indra/llmath
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-06-07 15:29:15 -0500
committerDave Parks <davep@lindenlab.com>2011-06-07 15:29:15 -0500
commit017da5453e92170ba37e93f364f30a9ccfbff202 (patch)
treead3d3d6e705c6e43c0fb00563df0fbfc3d3c7675 /indra/llmath
parent690f18c948003c9d14524da8cdf5b82da8227758 (diff)
parenteb85820797cb4321657a0ce0b160af806e15b05a (diff)
merge
Diffstat (limited to 'indra/llmath')
-rw-r--r--indra/llmath/llvolume.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/llmath/llvolume.cpp b/indra/llmath/llvolume.cpp
index 3c1de3a422..53f73d8637 100644
--- a/indra/llmath/llvolume.cpp
+++ b/indra/llmath/llvolume.cpp
@@ -6010,6 +6010,11 @@ void LLVolumeFace::cacheOptimize()
LLVCacheLRU cache;
+ if (mNumVertices < 3)
+ { //nothing to do
+ return;
+ }
+
//mapping of vertices to triangles and indices
std::vector<LLVCacheVertexData> vertex_data;