diff options
| author | Xiaohong Bao <bao@lindenlab.com> | 2013-11-14 11:10:19 -0700 | 
|---|---|---|
| committer | Xiaohong Bao <bao@lindenlab.com> | 2013-11-14 11:10:19 -0700 | 
| commit | 67ffa86817498028685e8cfb1bdc05d7ab204010 (patch) | |
| tree | 28bddfef68713713e0da1af7e937a888e3b7dd92 | |
| parent | d41110de20f17f56c0b7b4e62ddfa930cc707ecc (diff) | |
change the calculation method for object cache view culling.
| -rwxr-xr-x | indra/newview/llvocache.cpp | 9 | 
1 files changed, 5 insertions, 4 deletions
| diff --git a/indra/newview/llvocache.cpp b/indra/newview/llvocache.cpp index 8c28d9e440..31722507ce 100755 --- a/indra/newview/llvocache.cpp +++ b/indra/newview/llvocache.cpp @@ -654,29 +654,30 @@ public:  	virtual S32 frustumCheck(const LLViewerOctreeGroup* group)  	{ -#if 1 +#if 0  		S32 res = AABBInRegionFrustumGroupBounds(group);  #else	  		S32 res = AABBInRegionFrustumNoFarClipGroupBounds(group); -#endif  		if (res != 0)  		{  			res = llmin(res, AABBRegionSphereIntersectGroupExtents(group, mLocalShift));  		} +#endif +  		return res;  	}  	virtual S32 frustumCheckObjects(const LLViewerOctreeGroup* group)  	{ -#if 1 +#if 0  		S32 res = AABBInRegionFrustumObjectBounds(group);  #else  		S32 res = AABBInRegionFrustumNoFarClipObjectBounds(group); -#endif  		if (res != 0)  		{  			res = llmin(res, AABBRegionSphereIntersectObjectExtents(group, mLocalShift));  		} +#endif  		if(res != 0)  		{ | 
