From bd10ded1daa87195b06e96d112108bbd832b3cfd Mon Sep 17 00:00:00 2001
From: Palmer Truelson <palmer@lindenlab.com>
Date: Tue, 23 Feb 2010 18:03:37 -0800
Subject: [PATCH] index off for tristrip fix on davep's tristrip optimization

---
 indra/llmath/llvolume.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/indra/llmath/llvolume.cpp b/indra/llmath/llvolume.cpp
index cc1549925b3..34348230b6a 100644
--- a/indra/llmath/llvolume.cpp
+++ b/indra/llmath/llvolume.cpp
@@ -4961,7 +4961,7 @@ BOOL LLVolumeFace::createCap(LLVolume* volume, BOOL partial_build)
 			if (mTypeMask & TOP_MASK)
 			{
 				mTriStrip.push_back(0);
-				for (S32 i = 1; i <= j; ++i)
+				for (S32 i = 0; i <= j; ++i)
 				{
 					mTriStrip.push_back(i);
 					if (i != j)
@@ -4974,7 +4974,7 @@ BOOL LLVolumeFace::createCap(LLVolume* volume, BOOL partial_build)
 			else
 			{
 				mTriStrip.push_back(j);
-				for (S32 i = 1; i <= j; ++i)
+				for (S32 i = 0; i <= j; ++i)
 				{
 					if (i != j)
 					{
-- 
GitLab