Fix for U16 dumbness (can have > 64K indices)

meow-7.2.2
Dave Parks 2010-02-10 14:47:53 -06:00
parent b214180ac1
commit fb248e7ad0
1 changed files with 2 additions and 2 deletions

View File

@ -1065,14 +1065,14 @@ BOOL LLFace::getGeometryVolume(const LLVolume& volume,
mVertexBuffer->getIndexStrider(indicesp, mIndicesIndex);
if (LLPipeline::sUseTriStrips)
{
for (U16 i = 0; i < num_indices; i++)
for (U32 i = 0; i < num_indices; i++)
{
*indicesp++ = vf.mTriStrip[i] + index_offset;
}
}
else
{
for (U16 i = 0; i < num_indices; i++)
for (U32 i = 0; i < num_indices; i++)
{
*indicesp++ = vf.mIndices[i] + index_offset;
}