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(); };