aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvowater.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llvowater.cpp')
-rw-r--r--linden/indra/newview/llvowater.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/linden/indra/newview/llvowater.cpp b/linden/indra/newview/llvowater.cpp
index 1acda16..1ab6fbd 100644
--- a/linden/indra/newview/llvowater.cpp
+++ b/linden/indra/newview/llvowater.cpp
@@ -67,7 +67,6 @@ const U32 N_RES_HALF = (N_RES >> 1);
67const U32 WIDTH = (N_RES * WAVE_STEP); //128.f //64 // width of wave tile, in meters 67const U32 WIDTH = (N_RES * WAVE_STEP); //128.f //64 // width of wave tile, in meters
68const F32 WAVE_STEP_INV = (1. / WAVE_STEP); 68const F32 WAVE_STEP_INV = (1. / WAVE_STEP);
69 69
70const F32 g = 9.81f; // gravitational constant (m/s^2)
71 70
72LLVOWater::LLVOWater(const LLUUID &id, const LLPCode pcode, LLViewerRegion *regionp) 71LLVOWater::LLVOWater(const LLUUID &id, const LLPCode pcode, LLViewerRegion *regionp)
73: LLStaticViewerObject(id, LL_VO_WATER, regionp) 72: LLStaticViewerObject(id, LL_VO_WATER, regionp)
@@ -133,7 +132,7 @@ LLDrawable *LLVOWater::createDrawable(LLPipeline *pipeline)
133 } 132 }
134 else 133 else
135 { 134 {
136 mDrawable->setNumFaces(1, pool, gWorldp->getDefaultWaterTexture()); 135 mDrawable->setNumFaces(1, pool, LLWorld::getInstance()->getDefaultWaterTexture());
137 } 136 }
138 137
139 return mDrawable; 138 return mDrawable;