aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvosky.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:04 -0500
committerJacek Antonelli2008-08-15 23:45:04 -0500
commit117e22047c5752352342d64e3fb7ce00a4eb8113 (patch)
treee32de2cfba0dda8705ae528fcd1fbe23ba075685 /linden/indra/newview/llvosky.cpp
parentSecond Life viewer sources 1.18.0.6 (diff)
downloadmeta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.zip
meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.gz
meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.bz2
meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.xz
Second Life viewer sources 1.18.1.2
Diffstat (limited to 'linden/indra/newview/llvosky.cpp')
-rw-r--r--linden/indra/newview/llvosky.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/linden/indra/newview/llvosky.cpp b/linden/indra/newview/llvosky.cpp
index 2d31bf4..442ef23 100644
--- a/linden/indra/newview/llvosky.cpp
+++ b/linden/indra/newview/llvosky.cpp
@@ -1406,17 +1406,17 @@ BOOL LLVOSky::updateGeometry(LLDrawable *drawable)
1406 const F32 camera_height = mCameraPosAgent.mV[2]; 1406 const F32 camera_height = mCameraPosAgent.mV[2];
1407 const F32 height_above_water = camera_height - water_height; 1407 const F32 height_above_water = camera_height - water_height;
1408 1408
1409 BOOL sun = FALSE; 1409 BOOL sun_flag = FALSE;
1410 1410
1411 if (mSun.isVisible()) 1411 if (mSun.isVisible())
1412 { 1412 {
1413 if (mMoon.isVisible()) 1413 if (mMoon.isVisible())
1414 { 1414 {
1415 sun = look_at * mSun.getDirection() > 0; 1415 sun_flag = look_at * mSun.getDirection() > 0;
1416 } 1416 }
1417 else 1417 else
1418 { 1418 {
1419 sun = TRUE; 1419 sun_flag = TRUE;
1420 } 1420 }
1421 } 1421 }
1422 1422
@@ -1427,7 +1427,7 @@ BOOL LLVOSky::updateGeometry(LLDrawable *drawable)
1427#else 1427#else
1428 BOOL render_ref = !(gPipeline.getVertexShaderLevel(LLPipeline::SHADER_ENVIRONMENT) >= LLDrawPoolWater::SHADER_LEVEL_RIPPLE); 1428 BOOL render_ref = !(gPipeline.getVertexShaderLevel(LLPipeline::SHADER_ENVIRONMENT) >= LLDrawPoolWater::SHADER_LEVEL_RIPPLE);
1429#endif 1429#endif
1430 if (sun) 1430 if (sun_flag)
1431 { 1431 {
1432 setDrawRefl(0); 1432 setDrawRefl(0);
1433 if (render_ref) 1433 if (render_ref)