summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2011-06-21 12:00:38 -0600
committerXiaohong Bao <bao@lindenlab.com>2011-06-21 12:00:38 -0600
commit32f8b474971d0d2fc029dda0d567ace6f9a750c1 (patch)
treee0c05f3dd3afbd2d78942b4584fca1b9b8a6dd35 /indra
parent226bf6db06ee3d3703a39a5cd5a7ed5776796e55 (diff)
debug code for SH-692: Viewer Crash when enabling Render Metadata > Physics Shapes on Mesh Sandbox 25 on Windows XP
Diffstat (limited to 'indra')
-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();