summaryrefslogtreecommitdiff
path: root/indra/newview/llvovolume.cpp
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-03-26 11:41:27 -0700
committerGraham Linden <graham@lindenlab.com>2019-03-26 11:41:27 -0700
commit92f79a7c102170011724430f30ce1aaf40031d21 (patch)
treebfd10194700a0c270db0e0d9ae3055cae9468581 /indra/newview/llvovolume.cpp
parentfb7c887a5e09024731038eef0a57e5f1e8e08b2e (diff)
Fix unused var warn-error for Clang.
Diffstat (limited to 'indra/newview/llvovolume.cpp')
-rw-r--r--indra/newview/llvovolume.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp
index f97e0ff2e7..afccc1c42c 100644
--- a/indra/newview/llvovolume.cpp
+++ b/indra/newview/llvovolume.cpp
@@ -3277,20 +3277,17 @@ void LLVOVolume::updateSpotLightPriority()
{
F32 r = getLightRadius();
LLVector3 pos = mDrawable->getPositionAgent();
- LLVector3 agent_pos = gAgent.getPositionAgent();
LLVector3 at(0,0,-1);
-
at *= getRenderRotation();
pos += at * r;
at = LLViewerCamera::getInstance()->getAtAxis();
-
pos -= at * r;
mSpotLightPriority = gPipeline.calcPixelArea(pos, LLVector3(r,r,r), *LLViewerCamera::getInstance());
- //mSpotLightPriority = (agent_pos - pos).length() + r;
+ //mSpotLightPriority = (gAgent.getPositionAgent() - pos).length() + r;
if (mLightTexture.notNull())
{