check for overflow vertex indices, fixes issue 6135

thx @ JMC47 for identifying the reversion, creating a useful bug report with fifo log :-)
This commit is contained in:
degasus
2013-03-23 00:18:35 +01:00
parent 59b3600284
commit 470c9ff08a
3 changed files with 15 additions and 4 deletions

View File

@ -166,3 +166,10 @@ void IndexGenerator::AddPoints(u32 numVerts)
++numP;
}
}
u32 IndexGenerator::GetRemainingIndices()
{
u32 max_index = 65535;
return max_index - index;
}