diff options
author | Xiaohong Bao <bao@lindenlab.com> | 2013-07-29 10:15:10 -0600 |
---|---|---|
committer | Xiaohong Bao <bao@lindenlab.com> | 2013-07-29 10:15:10 -0600 |
commit | 4cca9ba279f908f206fa5e32adccf1038f05cc7f (patch) | |
tree | 9e50666f9c0c5e6340247ac3f7f627c1deef2b1b /indra/llmath/llcamera.cpp | |
parent | a9593367984f4411eedf8ee93178e24936ae1acb (diff) |
fix for SH-4293: texture console takes a while to settle down on Interesting viewer.
Diffstat (limited to 'indra/llmath/llcamera.cpp')
-rwxr-xr-x | indra/llmath/llcamera.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/indra/llmath/llcamera.cpp b/indra/llmath/llcamera.cpp index 054afd3e95..6a1e3804be 100755 --- a/indra/llmath/llcamera.cpp +++ b/indra/llmath/llcamera.cpp @@ -161,6 +161,22 @@ size_t LLCamera::readFrustumFromBuffer(const char *buffer) // ---------------- test methods ---------------- +bool LLCamera::isChanged() +{ + bool changed = false; + for (U32 i = 0; i < mPlaneCount; i++) + { + U8 mask = mPlaneMask[i]; + if (mask != 0xff && !changed) + { + changed = !mAgentPlanes[i].equal(mLastAgentPlanes[i]); + } + mLastAgentPlanes[i].set(mAgentPlanes[i]); + } + + return changed; +} + S32 LLCamera::AABBInFrustum(const LLVector4a ¢er, const LLVector4a& radius, const LLPlane* planes) { static const LLVector4a scaler[] = { |