Merge pull request #10202 from Snuffleupagus/issue-10200

Attempt to clean-up/restore pending rendering operations on `RenderTask.cancel` (issue 10200)
This commit is contained in:
Tim van der Meij 2018-11-02 23:11:47 +01:00 committed by GitHub
commit ec76aa531e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2439,6 +2439,9 @@ var InternalRenderTask = (function InternalRenderTaskClosure() {
cancel: function InternalRenderTask_cancel() {
this.running = false;
this.cancelled = true;
if (this.gfx) {
this.gfx.endDrawing();
}
if (this._canvas) {
canvasInRendering.delete(this._canvas);
}