From ce28e056c20bf2723f565bbf464b87781ec248a2 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Fri, 15 Aug 2008 23:45:42 -0500 Subject: Second Life viewer sources 1.20.2 --- linden/indra/newview/llvoclouds.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linden/indra/newview/llvoclouds.cpp') diff --git a/linden/indra/newview/llvoclouds.cpp b/linden/indra/newview/llvoclouds.cpp index 6ca8ac0..f50468d 100644 --- a/linden/indra/newview/llvoclouds.cpp +++ b/linden/indra/newview/llvoclouds.cpp @@ -133,7 +133,7 @@ BOOL LLVOClouds::updateGeometry(LLDrawable *drawable) drawable->setNumFacesFast(num_faces, NULL, getTEImage(0)); } - mDepth = (getPositionAgent()-gCamera->getOrigin())*gCamera->getAtAxis(); + mDepth = (getPositionAgent()-LLViewerCamera::getInstance()->getOrigin())*LLViewerCamera::getInstance()->getAtAxis(); S32 face_indx = 0; for ( ; face_indx < num_faces; face_indx++) @@ -224,7 +224,7 @@ void LLVOClouds::getGeometry(S32 te, LLVector3 vtx[4]; - at = gCamera->getAtAxis(); + at = LLViewerCamera::getInstance()->getAtAxis(); right = at % LLVector3(0.f, 0.f, 1.f); right.normVec(); up = right % at; -- cgit v1.1