aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvosky.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-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)