()
| 18862 | } |
| 18863 | |
| 18864 | function checkContextLoss() { |
| 18865 | if(scene.contextLost) { |
| 18866 | return true |
| 18867 | } |
| 18868 | if(gl.isContextLost()) { |
| 18869 | scene.contextLost = true |
| 18870 | scene.mouseListener.enabled = false |
| 18871 | scene.selection.object = null |
| 18872 | if(scene.oncontextloss) { |
| 18873 | scene.oncontextloss() |
| 18874 | } |
| 18875 | } |
| 18876 | } |
| 18877 | |
| 18878 | canvas.addEventListener('webglcontextlost', checkContextLoss) |
| 18879 |
no outgoing calls
no test coverage detected
searching dependent graphs…