From 9d7d7590a7c3a1fecb064d9fa278af57b478f443 Mon Sep 17 00:00:00 2001 From: Shyotl Date: Sun, 9 Feb 2014 23:40:03 -0600 Subject: [PATCH] Prevent debug visualizations from writing to the z-buffer (caused occlusion weirdness) --- indra/newview/pipeline.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index 5dd82bc4a..a94323f71 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -4706,6 +4706,8 @@ void LLPipeline::renderDebug() if(!mRenderDebugMask) return; + LLGLDepthTest gls_depth(GL_TRUE, GL_FALSE, GL_LEQUAL); + // Debug stuff. for (LLWorld::region_list_t::const_iterator iter = LLWorld::getInstance()->getRegionList().begin(); iter != LLWorld::getInstance()->getRegionList().end(); ++iter)