aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lldrawpoolwlsky.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/lldrawpoolwlsky.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/linden/indra/newview/lldrawpoolwlsky.cpp b/linden/indra/newview/lldrawpoolwlsky.cpp
index 3e8d1b2..d18f0de 100644
--- a/linden/indra/newview/lldrawpoolwlsky.cpp
+++ b/linden/indra/newview/lldrawpoolwlsky.cpp
@@ -96,7 +96,7 @@ void LLDrawPoolWLSky::endRenderPass( S32 pass )
96 96
97void LLDrawPoolWLSky::renderDome(F32 camHeightLocal, LLGLSLShader * shader) const 97void LLDrawPoolWLSky::renderDome(F32 camHeightLocal, LLGLSLShader * shader) const
98{ 98{
99 LLVector3 const & origin = gCamera->getOrigin(); 99 LLVector3 const & origin = LLViewerCamera::getInstance()->getOrigin();
100 100
101 llassert_always(NULL != shader); 101 llassert_always(NULL != shader);
102 102
@@ -288,7 +288,7 @@ void LLDrawPoolWLSky::render(S32 pass)
288 288
289 renderSkyHaze(camHeightLocal); 289 renderSkyHaze(camHeightLocal);
290 290
291 LLVector3 const & origin = gCamera->getOrigin(); 291 LLVector3 const & origin = LLViewerCamera::getInstance()->getOrigin();
292 glPushMatrix(); 292 glPushMatrix();
293 293
294 glTranslatef(origin.mV[0], origin.mV[1], origin.mV[2]); 294 glTranslatef(origin.mV[0], origin.mV[1], origin.mV[2]);