Skip to content

Commit

Permalink
fix call to missing loseContext when using virtual-webgl & call Plotl…
Browse files Browse the repository at this point in the history
…y.purge
  • Loading branch information
archmoj committed Nov 13, 2023
1 parent c9e315d commit 71e2cfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -2600,7 +2600,7 @@ class Map extends Camera {
}

const extension = this.painter.context.gl.getExtension('WEBGL_lose_context');
if (extension) extension.loseContext();
if (extension && extension.loseContext) extension.loseContext();
removeNode(this._canvasContainer);
removeNode(this._controlContainer);
removeNode(this._missingCSSCanary);
Expand Down

0 comments on commit 71e2cfc

Please sign in to comment.