summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2018-10-30 21:25:52 +0100
committerGraham Linden <graham@lindenlab.com>2018-10-30 21:25:52 +0100
commitd292ec7ee065c50e415c0ef06664ab6d428a022b (patch)
tree013c47a6c6ac2e5065cc1ead7c25312743124cdd /indra/newview
parent17df1215b031a353fd8b2373774be8a81abfa781 (diff)
Better OSX clean up.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/lldrawpoolsky.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/indra/newview/lldrawpoolsky.cpp b/indra/newview/lldrawpoolsky.cpp
index a04ebcddee..4d4711d7c9 100644
--- a/indra/newview/lldrawpoolsky.cpp
+++ b/indra/newview/lldrawpoolsky.cpp
@@ -98,18 +98,10 @@ void LLDrawPoolSky::render(S32 pass)
}
- LLGLSPipelineSkyBox gls_skybox;
-
- LLGLDepthTest gls_depth(GL_TRUE, GL_FALSE);
-
- LLGLSquashToFarClip far_clip;
+ LLGLSPipelineDepthTestSkyBox gls_skybox(true, false);
LLGLEnable fog_enable( (mVertexShaderLevel < 1 && LLViewerCamera::getInstance()->cameraUnderWater()) ? GL_FOG : 0);
- gPipeline.disableLights();
-
- LLGLDisable clip(GL_CLIP_PLANE0);
-
gGL.pushMatrix();
LLVector3 origin = LLViewerCamera::getInstance()->getOrigin();
gGL.translatef(origin.mV[0], origin.mV[1], origin.mV[2]);