diff --git a/indra/llrender/llrender.cpp b/indra/llrender/llrender.cpp index 86a6fba75..a40a0f1ac 100644 --- a/indra/llrender/llrender.cpp +++ b/indra/llrender/llrender.cpp @@ -2483,10 +2483,10 @@ void LLRender::vertexBatchPreTransformed(LLVector4a* verts, S32 vert_count) mTexcoordsp[mCount] = mTexcoordsp[mCount - 1]; } + mVerticesp.copyArray(mCount, verts, vert_count); + for (S32 i = 0; i < vert_count; i++) { - mVerticesp[mCount] = verts[i]; - mCount++; mTexcoordsp[mCount] = mTexcoordsp[mCount-1]; mColorsp[mCount] = mColorsp[mCount-1]; @@ -2521,11 +2521,11 @@ void LLRender::vertexBatchPreTransformed(LLVector4a* verts, LLVector2* uvs, S32 mTexcoordsp[mCount] = mTexcoordsp[mCount - 1]; } + mVerticesp.copyArray(mCount, verts, vert_count); + mTexcoordsp.copyArray(mCount, uvs, vert_count); + for (S32 i = 0; i < vert_count; i++) { - mVerticesp[mCount] = verts[i]; - mTexcoordsp[mCount] = uvs[i]; - mCount++; mColorsp[mCount] = mColorsp[mCount-1]; }