aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/pipeline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/pipeline.cpp')
-rw-r--r--linden/indra/newview/pipeline.cpp23
1 files changed, 9 insertions, 14 deletions
diff --git a/linden/indra/newview/pipeline.cpp b/linden/indra/newview/pipeline.cpp
index 14896e1..f10aca5 100644
--- a/linden/indra/newview/pipeline.cpp
+++ b/linden/indra/newview/pipeline.cpp
@@ -1417,20 +1417,15 @@ void LLPipeline::updateCull(LLCamera& camera, LLCullResult& result, S32 water_cl
1417 1417
1418 camera.disableUserClipPlane(); 1418 camera.disableUserClipPlane();
1419 1419
1420 if (gSky.mVOSkyp.notNull() && gSky.mVOSkyp->mDrawable.notNull()) 1420 // Render non-windlight sky.
1421 { 1421 if (hasRenderType(LLPipeline::RENDER_TYPE_SKY) &&
1422 // Hack for sky - always visible. 1422 gSky.mVOSkyp.notNull() &&
1423 if (hasRenderType(LLPipeline::RENDER_TYPE_SKY)) 1423 gSky.mVOSkyp->mDrawable.notNull())
1424 { 1424 {
1425 gSky.mVOSkyp->mDrawable->setVisible(camera); 1425 gSky.mVOSkyp->mDrawable->setVisible(camera);
1426 sCull->pushDrawable(gSky.mVOSkyp->mDrawable); 1426 sCull->pushDrawable(gSky.mVOSkyp->mDrawable);
1427 gSky.updateCull(); 1427 gSky.updateCull();
1428 stop_glerror(); 1428 stop_glerror();
1429 }
1430 }
1431 else
1432 {
1433 llinfos << "No sky drawable!" << llendl;
1434 } 1429 }
1435 1430
1436 if (hasRenderType(LLPipeline::RENDER_TYPE_GROUND) && 1431 if (hasRenderType(LLPipeline::RENDER_TYPE_GROUND) &&