diff options
author | Dave Parks <davep@lindenlab.com> | 2011-04-13 13:43:32 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-04-13 13:43:32 -0500 |
commit | 12f9f521ee6baeb39b403dfe15168de7ecfd9349 (patch) | |
tree | e23c3daecd42d76091da9174ff0eb31a0ea3da5e /indra/newview | |
parent | 13e12b2773ebd784281e76a1ec488c532962f765 (diff) |
Fix for bad default setting and libpng using /GL
Diffstat (limited to 'indra/newview')
-rwxr-xr-x | indra/newview/app_settings/settings.xml | 2 | ||||
-rw-r--r-- | indra/newview/llpolymesh.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 37a9c7304d..73f63458a3 100755 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -7178,7 +7178,7 @@ <key>Type</key>
<string>Boolean</string>
<key>Value</key>
- <integer>1.0</integer>
+ <integer>0</integer>
</map>
<key>RenderLocalLights</key>
diff --git a/indra/newview/llpolymesh.cpp b/indra/newview/llpolymesh.cpp index 24f84b2ddf..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 * (2*4 + 3*3 + 2 + 4);
- //use 16 byte aligned vertex data to make LLPolyMesh SSE friendly
- mVertexData = (F32*) malloc(nfloats*4);
+ int nfloats = nverts * (2*4 + 3*3 + 2 + 4); + //use 16 byte aligned vertex data to make LLPolyMesh SSE friendly + mVertexData = (F32*) malloc(nfloats*4); int offset = 0; mCoords = (LLVector4*)(mVertexData + offset); offset += 4*nverts; mNormals = (LLVector4*)(mVertexData + offset); offset += 4*nverts; |