Commit bbb532e
committed
[WebGL] avoid 'forceContextLost' notifications during destruction
GraphicsContextGLANGLE::reshape(0, 0) may trigger `forceContextLost`
if it fails to reshape FBOs. If it happens during HTMLCanvasElement
destruction it will capture areference to an HTMLCanvasElement that is
being destroyed, and lead to a double destruction of HTMLCanvasElement
and random crashes.1 parent 4336cfc commit bbb532e
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
700 | 700 | | |
701 | 701 | | |
702 | 702 | | |
703 | | - | |
704 | | - | |
705 | 703 | | |
| 704 | + | |
| 705 | + | |
706 | 706 | | |
707 | 707 | | |
708 | 708 | | |
| |||
0 commit comments