More cleanup in the WebGL tile layer's dispose method

This commit is contained in:
Tim Schaub
2021-09-23 11:05:16 +00:00
parent 2ebbee2340
commit a332842540
6 changed files with 61 additions and 0 deletions
+7
View File
@@ -442,6 +442,13 @@ class WebGLHelper extends Disposable {
ContextEventType.RESTORED,
this.boundHandleWebGLContextRestored_
);
const extension = this.gl_.getExtension('WEBGL_lose_context');
if (extension) {
extension.loseContext();
}
delete this.gl_;
delete this.canvas_;
}
/**