summaryrefslogtreecommitdiff
path: root/indra/llrender/llvertexbuffer.cpp
diff options
context:
space:
mode:
authorDebi King (Dessie) <dessie@lindenlab.com>2011-08-28 10:43:02 -0400
committerDebi King (Dessie) <dessie@lindenlab.com>2011-08-28 10:43:02 -0400
commit3d2378f1020060a84ab0b9ae23507077b7a0e7c1 (patch)
tree448bc57cf16514ef602602feff45ec4583d18608 /indra/llrender/llvertexbuffer.cpp
parentf094d4f7529c27233f5ca228bda21deb9b864f1a (diff)
parentebb55355ebbe6ec6760d8683e461903957ed24e5 (diff)
merge from viewer-pre-release
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 1180afa631..b6a252e8fa 100644
--- a/indra/llrender/llvertexbuffer.cpp
+++ b/indra/llrender/llvertexbuffer.cpp
@@ -296,7 +296,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();