Commit b59b3f6c authored by NiranV's avatar NiranV

Misc: Reduced getInstance calls in llvovolume.cpp some more.

parent b2afa4a5
......@@ -3360,14 +3360,15 @@ void LLVOVolume::updateSpotLightPriority()
pos += at * r;
at = LLViewerCamera::getInstance()->getAtAxis();
LLViewerCamera* viewer_cam = LLViewerCamera::getInstance();
at = viewer_cam->getAtAxis();
pos -= at * r;
//BD
if (mDrawable->hasShadow())
{
mSpotLightPriority = gPipeline.calcPixelArea(pos, LLVector3(r, r, r), *LLViewerCamera::getInstance());
mSpotLightPriority = gPipeline.calcPixelArea(pos, LLVector3(r, r, r), *viewer_cam);
}
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment