summaryrefslogtreecommitdiff
path: root/indra/newview/llvosurfacepatch.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2011-06-17 17:32:28 -0400
committerOz Linden <oz@lindenlab.com>2011-06-17 17:32:28 -0400
commit068c6d45099411d7827db3e50d9c91331fa5c189 (patch)
treec46cce78e6db0d87c1d9b0da9229ea0cf1d727de /indra/newview/llvosurfacepatch.cpp
parent5e5be51edebf0fb6a59d4907c9fcaac1b1667ac4 (diff)
parent806b11c5720e1bd9e9764fcfd896436b8385e8b2 (diff)
merge mesh branch changes (storm-1390)
Diffstat (limited to 'indra/newview/llvosurfacepatch.cpp')
-rw-r--r--indra/newview/llvosurfacepatch.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llvosurfacepatch.cpp b/indra/newview/llvosurfacepatch.cpp
index dbcd4f50ca..510525259f 100644
--- a/indra/newview/llvosurfacepatch.cpp
+++ b/indra/newview/llvosurfacepatch.cpp
@@ -375,6 +375,8 @@ void LLVOSurfacePatch::updateMainGeometry(LLFace *facep,
S32 num_vertices, num_indices;
U32 index;
+ llassert(mLastStride > 0);
+
render_stride = mLastStride;
patch_size = mPatchp->getSurface()->getGridsPerPatchEdge();
S32 vert_size = patch_size / render_stride;