aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvoclouds.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:42 -0500
committerJacek Antonelli2008-08-15 23:45:42 -0500
commitce28e056c20bf2723f565bbf464b87781ec248a2 (patch)
treeef7b0501c4de4b631a916305cbc2a5fdc125e52d /linden/indra/newview/llvoclouds.cpp
parentSecond Life viewer sources 1.19.1.4b (diff)
downloadmeta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.zip
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.gz
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.bz2
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.xz
Second Life viewer sources 1.20.2
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;