diff options
Diffstat (limited to 'linden/indra/newview/lldrawpoolground.cpp')
-rw-r--r-- | linden/indra/newview/lldrawpoolground.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linden/indra/newview/lldrawpoolground.cpp b/linden/indra/newview/lldrawpoolground.cpp index dc5e397..a1c5a99 100644 --- a/linden/indra/newview/lldrawpoolground.cpp +++ b/linden/indra/newview/lldrawpoolground.cpp | |||
@@ -79,7 +79,7 @@ void LLDrawPoolGround::render(S32 pass) | |||
79 | 79 | ||
80 | F32 water_height = gAgent.getRegion()->getWaterHeight(); | 80 | F32 water_height = gAgent.getRegion()->getWaterHeight(); |
81 | glPushMatrix(); | 81 | glPushMatrix(); |
82 | LLVector3 origin = gCamera->getOrigin(); | 82 | LLVector3 origin = LLViewerCamera::getInstance()->getOrigin(); |
83 | glTranslatef(origin.mV[0], origin.mV[1], llmax(origin.mV[2], water_height)); | 83 | glTranslatef(origin.mV[0], origin.mV[1], llmax(origin.mV[2], water_height)); |
84 | 84 | ||
85 | LLFace *facep = mDrawFace[0]; | 85 | LLFace *facep = mDrawFace[0]; |