summaryrefslogtreecommitdiff
path: root/indra/llrender/llvertexbuffer.cpp
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2011-06-24 15:28:34 -0600
committerXiaohong Bao <bao@lindenlab.com>2011-06-24 15:28:34 -0600
commit3161143977f0241c982552b53eb00cde0c65ce70 (patch)
treea01f4f4b376b38f36636276500f70f3f5c11bba7 /indra/llrender/llvertexbuffer.cpp
parente7c5913c0541c9c5ebcab93ec5fe4e8b1102eb23 (diff)
parentf83b08b69c84d6df9cebb79167804cd295555481 (diff)
Automated merge with http://hg.secondlife.com/mesh-development
Diffstat (limited to 'indra/llrender/llvertexbuffer.cpp')
-rw-r--r--indra/llrender/llvertexbuffer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llrender/llvertexbuffer.cpp b/indra/llrender/llvertexbuffer.cpp
index 4a0b964e61..d5a7159ee3 100644
--- a/indra/llrender/llvertexbuffer.cpp
+++ b/indra/llrender/llvertexbuffer.cpp
@@ -240,7 +240,8 @@ void LLVertexBuffer::setupClientArrays(U32 data_mask)
void LLVertexBuffer::drawArrays(U32 mode, const std::vector<LLVector3>& pos, const std::vector<LLVector3>& norm)
{
U32 count = pos.size();
- llassert(norm.size() >= pos.size());
+ llassert_always(norm.size() >= pos.size());
+ llassert_always(count > 0) ;
unbind();