diff options
author | Dave Parks <davep@lindenlab.com> | 2011-05-12 17:39:08 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-05-12 17:39:08 -0500 |
commit | 93696ac019865898d35d37d1e32d7a4b819a0c93 (patch) | |
tree | afac704c0d5ad56c0bc2ed603e6f0bb15f525431 /indra/newview/llsurfacepatch.cpp | |
parent | 6fcf9e4817a5c245f7779dd030b0ba75dab10e5e (diff) | |
parent | 4911586023144bd10d6a91f3f1be1e65af0c706d (diff) |
merge
Diffstat (limited to 'indra/newview/llsurfacepatch.cpp')
-rw-r--r-- | indra/newview/llsurfacepatch.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/llsurfacepatch.cpp b/indra/newview/llsurfacepatch.cpp index 1d57e27616..5077c2c7e1 100644 --- a/indra/newview/llsurfacepatch.cpp +++ b/indra/newview/llsurfacepatch.cpp @@ -854,8 +854,10 @@ void LLSurfacePatch::updateVisibility() F32 stride_per_distance = DEFAULT_DELTA_ANGLE / mSurfacep->getMetersPerGrid(); U32 grids_per_patch_edge = mSurfacep->getGridsPerPatchEdge(); - LLVector3 center = mCenterRegion + mSurfacep->getOriginAgent(); - LLVector3 radius = LLVector3(mRadius, mRadius, mRadius); + LLVector4a center; + center.load3( (mCenterRegion + mSurfacep->getOriginAgent()).mV); + LLVector4a radius; + radius.splat(mRadius); // sphere in frustum on global coordinates if (LLViewerCamera::getInstance()->AABBInFrustumNoFarClip(center, radius)) |