From 950226eedc336f85118ecebbbc5421b9c9af13be Mon Sep 17 00:00:00 2001 From: Sean Lilley Date: Wed, 6 Nov 2019 09:12:30 -0500 Subject: [PATCH] Revert separate primitive framebuffer --- CHANGES.md | 1 + Source/Scene/Scene.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index e1abc92a04db..51f4cc839913 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -5,6 +5,7 @@ Change Log ##### Fixes :wrench: * Fixed regression in 1.63 where ground atmosphere and labels rendered incorrectly on displays with `window.devicePixelRatio` greater than 1.0. [#8351](https://github.com/AnalyticalGraphicsInc/cesium/pull/8351) +* Fixed regression in 1.63 where some primitives would show through the globe when log depth is disabled. [#8368](https://github.com/AnalyticalGraphicsInc/cesium/pull/8368) ### 1.63 - 2019-11-01 diff --git a/Source/Scene/Scene.js b/Source/Scene/Scene.js index b0558f388af7..3626b97ef5a2 100644 --- a/Source/Scene/Scene.js +++ b/Source/Scene/Scene.js @@ -2198,7 +2198,7 @@ import View from './View.js'; var clearGlobeDepth = environmentState.clearGlobeDepth; var useDepthPlane = environmentState.useDepthPlane; - var separatePrimitiveFramebuffer = environmentState.separatePrimitiveFramebuffer = (numFrustums > 1) && clearGlobeDepth && environmentState.useGlobeDepthFramebuffer; + var separatePrimitiveFramebuffer = environmentState.separatePrimitiveFramebuffer = false; var clearDepth = scene._depthClearCommand; var clearStencil = scene._stencilClearCommand; var clearClassificationStencil = scene._classificationStencilClearCommand;