diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llvoground.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linden/indra/newview/llvoground.cpp b/linden/indra/newview/llvoground.cpp index a985c44..32622ec 100644 --- a/linden/indra/newview/llvoground.cpp +++ b/linden/indra/newview/llvoground.cpp | |||
@@ -122,13 +122,13 @@ BOOL LLVOGround::updateGeometry(LLDrawable *drawable) | |||
122 | // | 122 | // |
123 | // | 123 | // |
124 | // | 124 | // |
125 | LLVector3 at_dir = gCamera->getAtAxis(); | 125 | LLVector3 at_dir = LLViewerCamera::getInstance()->getAtAxis(); |
126 | at_dir.mV[VZ] = 0.f; | 126 | at_dir.mV[VZ] = 0.f; |
127 | if (at_dir.normVec() < 0.01) | 127 | if (at_dir.normVec() < 0.01) |
128 | { | 128 | { |
129 | // We really don't care, as we're not looking anywhere near the horizon. | 129 | // We really don't care, as we're not looking anywhere near the horizon. |
130 | } | 130 | } |
131 | LLVector3 left_dir = gCamera->getLeftAxis(); | 131 | LLVector3 left_dir = LLViewerCamera::getInstance()->getLeftAxis(); |
132 | left_dir.mV[VZ] = 0.f; | 132 | left_dir.mV[VZ] = 0.f; |
133 | left_dir.normVec(); | 133 | left_dir.normVec(); |
134 | 134 | ||