Remove squashfarclip hackery to make horizon lines in deferred match non-ALM rendering to avoid seam when rendering deferred.
meow-7.2.2
Graham Linden 2018-09-19 18:47:39 +01:00
parent c9b2759469
commit 741d283c0e
1 changed files with 5 additions and 6 deletions

View File

@ -718,12 +718,11 @@ void LLDrawPoolWater::shade()
sNeedsDistortionUpdate = TRUE;
face->renderIndexed();
}
// MAINT-9006 using squash clip even for deferred keeps
// horizon consistent between ALM and non-ALM rendering
// I can't think of a reason we'd want to avoid it. - g
//else if (gGLManager.mHasDepthClamp || deferred_render)
else if (gGLManager.mHasDepthClamp)
{
// using squash clip for deferred rendering makes the horizon lines match
// between ALM and non-ALM rendering (SL-1655), but introduces an ugly seem between
// near and far water(SL-9696)...we're going to live with the former and not cause the latter
else if (gGLManager.mHasDepthClamp || deferred_render)
{
face->renderIndexed();
}
else