File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -308,6 +308,12 @@ export class Canvas extends CanvasBase {
308308
309309 disposeNativeView ( ) : void {
310310 this . _canvas . setListener ( null ) ;
311+ this . _2dContext = undefined ;
312+ this . _webglContext = undefined ;
313+ this . _webgl2Context = undefined ;
314+ this . _gpuContext = undefined ;
315+ this . _contextType = ContextType . None ;
316+ this . _is2D = false ;
311317 this . _canvas = undefined ;
312318 super . disposeNativeView ( ) ;
313319 }
Original file line number Diff line number Diff line change @@ -296,6 +296,12 @@ export class Canvas extends CanvasBase {
296296
297297 disposeNativeView ( ) : void {
298298 this . _canvas ?. setListener ?.( null ) ;
299+ this . _2dContext = undefined ;
300+ this . _webglContext = undefined ;
301+ this . _webgl2Context = undefined ;
302+ this . _gpuContext = undefined ;
303+ this . _contextType = ContextType . None ;
304+ this . _is2D = false ;
299305 this . _readyListener = undefined ;
300306 this . _canvas = undefined ;
301307 super . disposeNativeView ( ) ;
You can’t perform that action at this time.
0 commit comments