Skip to content
Snippets Groups Projects
Commit fb248e7a authored by David Parks's avatar David Parks
Browse files

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

parent b214180a
No related branches found
No related tags found
No related merge requests found
...@@ -1065,14 +1065,14 @@ BOOL LLFace::getGeometryVolume(const LLVolume& volume, ...@@ -1065,14 +1065,14 @@ BOOL LLFace::getGeometryVolume(const LLVolume& volume,
mVertexBuffer->getIndexStrider(indicesp, mIndicesIndex); mVertexBuffer->getIndexStrider(indicesp, mIndicesIndex);
if (LLPipeline::sUseTriStrips) 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; *indicesp++ = vf.mTriStrip[i] + index_offset;
} }
} }
else else
{ {
for (U16 i = 0; i < num_indices; i++) for (U32 i = 0; i < num_indices; i++)
{ {
*indicesp++ = vf.mIndices[i] + index_offset; *indicesp++ = vf.mIndices[i] + index_offset;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment