summaryrefslogtreecommitdiff
path: root/indra/newview/lldrawpoolground.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/lldrawpoolground.cpp')
-rw-r--r--indra/newview/lldrawpoolground.cpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/indra/newview/lldrawpoolground.cpp b/indra/newview/lldrawpoolground.cpp
index d84f0959bf..31c4e4fde9 100644
--- a/indra/newview/lldrawpoolground.cpp
+++ b/indra/newview/lldrawpoolground.cpp
@@ -72,15 +72,10 @@ void LLDrawPoolGround::render(S32 pass)
glEnableClientState(GL_VERTEX_ARRAY);
LLGLSPipelineSkyBox gls_skybox;
- LLGLDisable tex(GL_TEXTURE_2D);
- LLGLDepthTest gls_depth(GL_FALSE, GL_FALSE);
+ LLImageGL::unbindTexture(0, GL_TEXTURE_2D);
+ LLGLDepthTest gls_depth(GL_TRUE, GL_FALSE);
- glMatrixMode( GL_PROJECTION );
-
- glPushMatrix();
- //gViewerWindow->setup3DRender();
-
- glMatrixMode(GL_MODELVIEW);
+ LLGLClampToFarClip far_clip(glh_get_current_projection());
F32 water_height = gAgent.getRegion()->getWaterHeight();
glPushMatrix();
@@ -94,9 +89,6 @@ void LLDrawPoolGround::render(S32 pass)
LLOverrideFaceColor col(this, gSky.mVOSkyp->getGLFogColor());
facep->renderIndexed();
- glMatrixMode( GL_PROJECTION );
- glPopMatrix();
- glMatrixMode( GL_MODELVIEW );
glPopMatrix();
}