aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lldrawpoolground.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/lldrawpoolground.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/linden/indra/newview/lldrawpoolground.cpp b/linden/indra/newview/lldrawpoolground.cpp
index 5698027..c8d110b 100644
--- a/linden/indra/newview/lldrawpoolground.cpp
+++ b/linden/indra/newview/lldrawpoolground.cpp
@@ -63,13 +63,14 @@ void LLDrawPoolGround::prerender()
63 63
64void LLDrawPoolGround::render(S32 pass) 64void LLDrawPoolGround::render(S32 pass)
65{ 65{
66 if (mDrawFace.empty()) 66 if (mDrawFace.empty() || !gSavedSettings.getBOOL("RenderGround"))
67 { 67 {
68 return; 68 return;
69 } 69 }
70 70
71 LLGLSPipelineSkyBox gls_skybox; 71 LLGLSPipelineSkyBox gls_skybox;
72 LLImageGL::unbindTexture(0, GL_TEXTURE_2D); 72 gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE);
73
73 LLGLDepthTest gls_depth(GL_TRUE, GL_FALSE); 74 LLGLDepthTest gls_depth(GL_TRUE, GL_FALSE);
74 75
75 LLGLClampToFarClip far_clip(glh_get_current_projection()); 76 LLGLClampToFarClip far_clip(glh_get_current_projection());