aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lldrawpoolground.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:34 -0500
committerJacek Antonelli2008-08-15 23:45:34 -0500
commitcd17687f01420952712a500107e0f93e7ab8d5f8 (patch)
treece48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/lldrawpoolground.cpp
parentSecond Life viewer sources 1.19.0.5 (diff)
downloadmeta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz
Second Life viewer sources 1.19.1.0
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/lldrawpoolground.cpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/linden/indra/newview/lldrawpoolground.cpp b/linden/indra/newview/lldrawpoolground.cpp
index 6ff7f06..dc5e397 100644
--- a/linden/indra/newview/lldrawpoolground.cpp
+++ b/linden/indra/newview/lldrawpoolground.cpp
@@ -72,15 +72,10 @@ void LLDrawPoolGround::render(S32 pass)
72 glEnableClientState(GL_VERTEX_ARRAY); 72 glEnableClientState(GL_VERTEX_ARRAY);
73 73
74 LLGLSPipelineSkyBox gls_skybox; 74 LLGLSPipelineSkyBox gls_skybox;
75 LLGLDisable tex(GL_TEXTURE_2D); 75 LLImageGL::unbindTexture(0, GL_TEXTURE_2D);
76 LLGLDepthTest gls_depth(GL_FALSE, GL_FALSE); 76 LLGLDepthTest gls_depth(GL_TRUE, GL_FALSE);
77 77
78 glMatrixMode( GL_PROJECTION ); 78 LLGLClampToFarClip far_clip(glh_get_current_projection());
79
80 glPushMatrix();
81 //gViewerWindow->setup3DRender();
82
83 glMatrixMode(GL_MODELVIEW);
84 79
85 F32 water_height = gAgent.getRegion()->getWaterHeight(); 80 F32 water_height = gAgent.getRegion()->getWaterHeight();
86 glPushMatrix(); 81 glPushMatrix();
@@ -94,9 +89,6 @@ void LLDrawPoolGround::render(S32 pass)
94 LLOverrideFaceColor col(this, gSky.mVOSkyp->getGLFogColor()); 89 LLOverrideFaceColor col(this, gSky.mVOSkyp->getGLFogColor());
95 facep->renderIndexed(); 90 facep->renderIndexed();
96 91
97 glMatrixMode( GL_PROJECTION );
98 glPopMatrix();
99 glMatrixMode( GL_MODELVIEW );
100 glPopMatrix(); 92 glPopMatrix();
101} 93}
102 94