From ae1dd29a7a012414742ed9142ae17715b3291810 Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Fri, 8 Jul 2016 10:27:53 -0700 Subject: [PATCH] Fix depth writing for glow lines --- libraries/render-utils/src/GeometryCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/render-utils/src/GeometryCache.cpp b/libraries/render-utils/src/GeometryCache.cpp index 9dc104405e..fd06272fa9 100644 --- a/libraries/render-utils/src/GeometryCache.cpp +++ b/libraries/render-utils/src/GeometryCache.cpp @@ -1464,7 +1464,7 @@ void GeometryCache::renderGlowLine(gpu::Batch& batch, const glm::vec3& p1, const auto PS = gpu::Shader::createPixel(std::string(glowLine_frag)); auto program = gpu::Shader::createProgram(VS, GS, PS); state->setCullMode(gpu::State::CULL_NONE); - state->setDepthTest(true, true, gpu::LESS_EQUAL); + state->setDepthTest(true, false, gpu::LESS_EQUAL); state->setBlendFunction(true, gpu::State::SRC_ALPHA, gpu::State::BLEND_OP_ADD, gpu::State::INV_SRC_ALPHA, gpu::State::FACTOR_ALPHA, gpu::State::BLEND_OP_ADD, gpu::State::ONE);