Skip to content

Commit 1081deb

Browse files
committed
[v9] Fix GoogleMapsOverlay by not clearing canvas
1 parent 3209668 commit 1081deb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

modules/core/src/passes/layers-pass.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default class LayersPass extends Pass {
6666
viewport: [0, 0, width, height]
6767
},
6868
// clear depth and color buffers, restoring transparency
69-
clearColor: options.clearColor || (options.clearCanvas ? [0, 0, 0, 0] : undefined),
69+
clearColor: options.clearColor ?? (options.clearCanvas ? [0, 0, 0, 0] : false),
7070
clearDepth: options.clearCanvas ? 1 : undefined
7171
});
7272

@@ -85,8 +85,7 @@ export default class LayersPass extends Pass {
8585
viewports,
8686
views,
8787
onViewportActive,
88-
clearStack = true,
89-
clearCanvas = true
88+
clearStack = true
9089
} = options;
9190
options.pass = options.pass || 'unknown';
9291

0 commit comments

Comments
 (0)