Skip to content

Commit

Permalink
Dispose canvas only on context dispose
Browse files Browse the repository at this point in the history
  • Loading branch information
vorg committed Jun 28, 2019
1 parent e0bda6f commit 9633e1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -1197,9 +1197,9 @@ function createContext(opts) {
while (this.resources.length) {
this.dispose(this.resources[0])
}
this.gl.canvas.width = 1
this.gl.canvas.height = 1
}
this.gl.canvas.width = 1
this.gl.canvas.height = 1
}
})
ctx.apply(defaultState)
Expand Down

0 comments on commit 9633e1b

Please sign in to comment.