aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvoclouds.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llvoclouds.cpp')
-rw-r--r--linden/indra/newview/llvoclouds.cpp4
1 files changed, 2 insertions, 2 deletions
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)
133 drawable->setNumFacesFast(num_faces, NULL, getTEImage(0)); 133 drawable->setNumFacesFast(num_faces, NULL, getTEImage(0));
134 } 134 }
135 135
136 mDepth = (getPositionAgent()-gCamera->getOrigin())*gCamera->getAtAxis(); 136 mDepth = (getPositionAgent()-LLViewerCamera::getInstance()->getOrigin())*LLViewerCamera::getInstance()->getAtAxis();
137 137
138 S32 face_indx = 0; 138 S32 face_indx = 0;
139 for ( ; face_indx < num_faces; face_indx++) 139 for ( ; face_indx < num_faces; face_indx++)
@@ -224,7 +224,7 @@ void LLVOClouds::getGeometry(S32 te,
224 224
225 LLVector3 vtx[4]; 225 LLVector3 vtx[4];
226 226
227 at = gCamera->getAtAxis(); 227 at = LLViewerCamera::getInstance()->getAtAxis();
228 right = at % LLVector3(0.f, 0.f, 1.f); 228 right = at % LLVector3(0.f, 0.f, 1.f);
229 right.normVec(); 229 right.normVec();
230 up = right % at; 230 up = right % at;