summaryrefslogtreecommitdiff
path: root/indra/llrender
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2012-04-11 12:20:03 -0500
committerDave Parks <davep@lindenlab.com>2012-04-11 12:20:03 -0500
commit484994b43b65f19d3d64c7ea3760313277e9e138 (patch)
treecd6d616d0dda0a47e422bd8df77e1fc2c315cab5 /indra/llrender
parentf96a6aad6b266c8cd4b1a117510fd4cacb6413c8 (diff)
MAINT-870 Fix for crash from out of control lawns.
Diffstat (limited to 'indra/llrender')
-rw-r--r--indra/llrender/llvertexbuffer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llrender/llvertexbuffer.cpp b/indra/llrender/llvertexbuffer.cpp
index b4899209c4..879888d185 100644
--- a/indra/llrender/llvertexbuffer.cpp
+++ b/indra/llrender/llvertexbuffer.cpp
@@ -1207,10 +1207,10 @@ void LLVertexBuffer::updateNumVerts(S32 nverts)
llassert(nverts >= 0);
- if (nverts >= 65535)
+ if (nverts > 65536)
{
llwarns << "Vertex buffer overflow!" << llendl;
- nverts = 65535;
+ nverts = 65536;
}
U32 needed_size = calcOffsets(mTypeMask, mOffsets, nverts);