diff options
author | prep linden <prep@lindenlab.com> | 2011-04-15 10:48:13 -0400 |
---|---|---|
committer | prep linden <prep@lindenlab.com> | 2011-04-15 10:48:13 -0400 |
commit | 2851141ee64f628077cbd44b97e7b3514795d248 (patch) | |
tree | bf749eddcfbe4fbbaf32533b9e99eb3ba8ac2acd /indra/newview/llpolymesh.cpp | |
parent | fcfb70f01d46e5a7f7716c81ce7ad9667a99e3ed (diff) | |
parent | 88ae509ed957226531611486415ee33082d6d4dd (diff) |
merge
Diffstat (limited to 'indra/newview/llpolymesh.cpp')
-rw-r--r-- | indra/newview/llpolymesh.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/llpolymesh.cpp b/indra/newview/llpolymesh.cpp index 90e835cda8..4b2c569cc3 100644 --- a/indra/newview/llpolymesh.cpp +++ b/indra/newview/llpolymesh.cpp @@ -768,9 +768,9 @@ LLPolyMesh::LLPolyMesh(LLPolyMeshSharedData *shared_data, LLPolyMesh *reference_ // Allocate memory without initializing every vector // NOTE: This makes asusmptions about the size of LLVector[234] int nverts = mSharedData->mNumVertices; - int nfloats = nverts * (3*5 + 2 + 4); + int nfloats = nverts * (2*4 + 3*3 + 2 + 4); //use 16 byte aligned vertex data to make LLPolyMesh SSE friendly - mVertexData = new F32[nfloats]; + mVertexData = (F32*) malloc(nfloats*4); int offset = 0; mCoords = (LLVector4*)(mVertexData + offset); offset += 4*nverts; mNormals = (LLVector4*)(mVertexData + offset); offset += 4*nverts; @@ -799,7 +799,7 @@ LLPolyMesh::~LLPolyMesh() mJointRenderData[i] = NULL; } - delete [] mVertexData; + free(mVertexData); } |