Skip to content

Commit 71e2cfc

Browse files
committed
fix call to missing loseContext when using virtual-webgl & call Plotly.purge
1 parent c9e315d commit 71e2cfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ui/map.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2600,7 +2600,7 @@ class Map extends Camera {
26002600
}
26012601

26022602
const extension = this.painter.context.gl.getExtension('WEBGL_lose_context');
2603-
if (extension) extension.loseContext();
2603+
if (extension && extension.loseContext) extension.loseContext();
26042604
removeNode(this._canvasContainer);
26052605
removeNode(this._controlContainer);
26062606
removeNode(this._missingCSSCanary);

0 commit comments

Comments
 (0)