aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lldrawpoolground.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-12-01 17:39:58 -0600
committerJacek Antonelli2008-12-01 17:40:06 -0600
commit7abecb48babe6a6f09bf6692ba55076546cfced9 (patch)
tree8d18a88513fb97adf32c10aae78f4be1984942db /linden/indra/newview/lldrawpoolground.cpp
parentSecond Life viewer sources 1.21.6 (diff)
downloadmeta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.zip
meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.gz
meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.bz2
meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.xz
Second Life viewer sources 1.22.0-RC
Diffstat (limited to 'linden/indra/newview/lldrawpoolground.cpp')
-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());