diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/lldrawpoolground.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/linden/indra/newview/lldrawpoolground.cpp b/linden/indra/newview/lldrawpoolground.cpp index 5698027..4053e1d 100644 --- a/linden/indra/newview/lldrawpoolground.cpp +++ b/linden/indra/newview/lldrawpoolground.cpp | |||
@@ -4,7 +4,7 @@ | |||
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2002&license=viewergpl$ | 5 | * $LicenseInfo:firstyear=2002&license=viewergpl$ |
6 | * | 6 | * |
7 | * Copyright (c) 2002-2008, Linden Research, Inc. | 7 | * Copyright (c) 2002-2009, Linden Research, Inc. |
8 | * | 8 | * |
9 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
10 | * The source code in this file ("Source Code") is provided by Linden Lab | 10 | * The source code in this file ("Source Code") is provided by Linden Lab |
@@ -63,13 +63,14 @@ void LLDrawPoolGround::prerender() | |||
63 | 63 | ||
64 | void LLDrawPoolGround::render(S32 pass) | 64 | void 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()); |