diff options
author | Dave Parks <davep@lindenlab.com> | 2011-10-13 01:19:45 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-10-13 01:19:45 -0500 |
commit | 7b6723d1e0158d5dc326266a0332e87f634f9755 (patch) | |
tree | 10efed7ccda1a80889bfb65cd64c86b8d33c75ed /indra/newview/llfloatermodelpreview.cpp | |
parent | 1a499c13c813d4aa9631ffae00b36a053f260747 (diff) |
SH-1650 Mitigate memory fragmentation by holding onto and reusing VBOs
Diffstat (limited to 'indra/newview/llfloatermodelpreview.cpp')
-rw-r--r-- | indra/newview/llfloatermodelpreview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llfloatermodelpreview.cpp b/indra/newview/llfloatermodelpreview.cpp index d9ce72a2c2..8f6013f2d9 100644 --- a/indra/newview/llfloatermodelpreview.cpp +++ b/indra/newview/llfloatermodelpreview.cpp @@ -5457,7 +5457,7 @@ BOOL LLModelPreview::render() } } - for (U32 j = 0; j < buffer->getRequestedVerts(); ++j) + for (U32 j = 0; j < buffer->getNumVerts(); ++j) { LLMatrix4 final_mat; final_mat.mMatrix[0][0] = final_mat.mMatrix[1][1] = final_mat.mMatrix[2][2] = final_mat.mMatrix[3][3] = 0.f; |