From 2c3c0b8db86528822caee349ad77c010e0c20df5 Mon Sep 17 00:00:00 2001 From: Andrey Kuznecov Date: Fri, 11 Oct 2024 13:45:08 +0700 Subject: [PATCH] f --- src/deckgl2gisLayer.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/deckgl2gisLayer.ts b/src/deckgl2gisLayer.ts index 8b7374c..24d488d 100644 --- a/src/deckgl2gisLayer.ts +++ b/src/deckgl2gisLayer.ts @@ -218,9 +218,10 @@ export class Deck2gisLayer implements DeckCustomLayer { this.programmBinder(); + const prevDepthMask = gl.getParameter(gl.DEPTH_WRITEMASK); gl.depthMask(false); gl.drawArrays(gl.TRIANGLES, 0, 6); - gl.depthMask(true); + gl.depthMask(prevDepthMask); (this.props.deck as any).glStateStore.useMapglWebglState(); };