Merge pull request #4489 from sum2012/patch-2

Attempt to fix Colin Mcrae Dirt 2 Crash correctly
This commit is contained in:
Henrik Rydgård 2013-11-09 17:30:25 -08:00
commit bcd499ff38

View File

@ -111,7 +111,8 @@ void IndexGenerator::AddStrip(int numVerts) {
}
inds_ = outInds;
index_ += numVerts;
count_ += numTris * 3;
if (numTris > 0)
count_ += numTris * 3;
// This is so we can detect one single strip by just looking at seenPrims_.
if (!seenPrims_) {
seenPrims_ = 1 << GE_PRIM_TRIANGLE_STRIP;