diff --git a/CHANGES.md b/CHANGES.md index a8deaca3237c..d2dce06dee02 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -10,6 +10,7 @@ - Fixed error when there are duplicated points in polygon/polyline geometries with `ArcType.RHUMB` [#12460](https://github.com/CesiumGS/cesium/pull/12460) - Fixed ground atmosphere shaders in 3D orthographic mode [#12484](https://github.com/CesiumGS/cesium/pull/12484) - Fixed zoom in 3D orthographic mode [#12483](https://github.com/CesiumGS/cesium/pull/12483) +- Fixed z-fighting and performance issues in 2D infinite scroll mode [#12488](https://github.com/CesiumGS/cesium/pull/12488) ## 1.126 - 2025-02-03 diff --git a/packages/engine/Source/Scene/Scene.js b/packages/engine/Source/Scene/Scene.js index e438fdf87e32..1887e135ca6d 100644 --- a/packages/engine/Source/Scene/Scene.js +++ b/packages/engine/Source/Scene/Scene.js @@ -3310,8 +3310,9 @@ function execute2DViewportCommands(scene, passState) { } camera._setTransform(transform); - Cartesian3.clone(position, camera.position); - camera.frustum = frustum.clone(); + camera.position.x = position.x; + camera.position.y = position.y; + camera.frustum = frustum; passState.viewport = originalViewport; }