diff options
author | Dave Parks <davep@lindenlab.com> | 2010-02-10 14:47:53 -0600 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2010-02-10 14:47:53 -0600 |
commit | fb248e7ad01ad0ffe74e4f9c3297ebf9f12bd797 (patch) | |
tree | 082bf85106302dfdf1fe3634c8a5c25418258991 /indra/newview/llface.cpp | |
parent | b214180ac189f6c6347347c5d3a5dc7035e0c039 (diff) |
Fix for U16 dumbness (can have > 64K indices)
Diffstat (limited to 'indra/newview/llface.cpp')
-rw-r--r-- | indra/newview/llface.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp index ebebd485d2..c473be852d 100644 --- a/indra/newview/llface.cpp +++ b/indra/newview/llface.cpp @@ -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; } |