From 92f79a7c102170011724430f30ce1aaf40031d21 Mon Sep 17 00:00:00 2001 From: Graham Linden Date: Tue, 26 Mar 2019 11:41:27 -0700 Subject: Fix unused var warn-error for Clang. --- indra/newview/llvovolume.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'indra/newview') 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()) { -- cgit v1.2.3