diff options
author | Dave Parks <davep@lindenlab.com> | 2010-04-27 00:13:51 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2010-04-27 00:13:51 -0500 |
commit | 9d88673a29cd5b6ae3cadb442ff1fa850ce606bc (patch) | |
tree | 2c305de1b56165569c7d00855618b33d87e1acfa /indra/newview | |
parent | c0a2a44a44c5d6db39cfa5fdb5630578d4c2d267 (diff) |
Stop z-fighting in glow pass.
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/lldrawpoolsimple.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/lldrawpoolsimple.cpp b/indra/newview/lldrawpoolsimple.cpp index ca7a1b47c2..c8e6f95ab6 100644 --- a/indra/newview/lldrawpoolsimple.cpp +++ b/indra/newview/lldrawpoolsimple.cpp @@ -55,6 +55,10 @@ void LLDrawPoolGlow::render(S32 pass) LLFastTimer t(FTM_RENDER_GLOW); LLGLEnable blend(GL_BLEND); LLGLDisable test(GL_ALPHA_TEST); + gGL.flush(); + /// Get rid of z-fighting with non-glow pass. + LLGLEnable polyOffset(GL_POLYGON_OFFSET_FILL); + glPolygonOffset(-1.0f, -1.0f); gGL.setSceneBlendType(LLRender::BT_ADD); U32 shader_level = LLViewerShaderMgr::instance()->getVertexShaderLevel(LLViewerShaderMgr::SHADER_OBJECT); |