Set the canvas size to 0 on dispose

This commit is contained in:
Frederic Junod
2019-03-08 13:19:17 +01:00
parent a372ca0569
commit 6de566d95b
3 changed files with 11 additions and 0 deletions

View File

@@ -143,6 +143,8 @@ class ExecutorGroup extends Disposable {
executors[key].disposeInternal();
}
}
const canvas = this.hitDetectionContext_.canvas;
canvas.width = canvas.height = 0;
super.disposeInternal();
}