diff options
author | Xiaohong Bao <bao@lindenlab.com> | 2013-10-30 11:38:23 -0600 |
---|---|---|
committer | Xiaohong Bao <bao@lindenlab.com> | 2013-10-30 11:38:23 -0600 |
commit | 46c3bf7575a0366c20388d19815a5ee8e01cc0c6 (patch) | |
tree | 25033834aa417c567e7c03f1924fc87e656ba9f4 /indra/newview/llvocache.cpp | |
parent | fd81041996d07bf1a1d14192c8d9c05625b3e0f0 (diff) | |
parent | 787ff3937d697526284e8d0a812a7353ad916dea (diff) |
Automated merge with http://bitbucket.org/lindenlab/viewer-interesting
Diffstat (limited to 'indra/newview/llvocache.cpp')
-rwxr-xr-x | indra/newview/llvocache.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/indra/newview/llvocache.cpp b/indra/newview/llvocache.cpp index 72270eec46..b1c7423b49 100755 --- a/indra/newview/llvocache.cpp +++ b/indra/newview/llvocache.cpp @@ -383,20 +383,15 @@ bool LLVOCacheEntry::isRecentlyVisible() const return vis; } -void LLVOCacheEntry::calcSceneContribution(const LLVector3& camera_origin, bool needs_update, U32 last_update) +void LLVOCacheEntry::calcSceneContribution(const LLVector4a& camera_origin, bool needs_update, U32 last_update) { if(!needs_update && getVisible() >= last_update) { return; //no need to update } - const LLVector4a& center = getPositionGroup(); - - LLVector4a origin; - origin.load3(camera_origin.mV); - LLVector4a lookAt; - lookAt.setSub(center, origin); + lookAt.setSub(getPositionGroup(), camera_origin); F32 squared_dist = lookAt.dot3(lookAt).getF32(); if(squared_dist > 0.f) |