diff options
author | Jacek Antonelli | 2008-08-15 23:45:42 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:42 -0500 |
commit | ce28e056c20bf2723f565bbf464b87781ec248a2 (patch) | |
tree | ef7b0501c4de4b631a916305cbc2a5fdc125e52d /linden/indra/newview/llvowater.cpp | |
parent | Second Life viewer sources 1.19.1.4b (diff) | |
download | meta-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 '')
-rw-r--r-- | linden/indra/newview/llvowater.cpp | 3 |
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); | |||
67 | const U32 WIDTH = (N_RES * WAVE_STEP); //128.f //64 // width of wave tile, in meters | 67 | const U32 WIDTH = (N_RES * WAVE_STEP); //128.f //64 // width of wave tile, in meters |
68 | const F32 WAVE_STEP_INV = (1. / WAVE_STEP); | 68 | const F32 WAVE_STEP_INV = (1. / WAVE_STEP); |
69 | 69 | ||
70 | const F32 g = 9.81f; // gravitational constant (m/s^2) | ||
71 | 70 | ||
72 | LLVOWater::LLVOWater(const LLUUID &id, const LLPCode pcode, LLViewerRegion *regionp) | 71 | LLVOWater::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; |