diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2014-05-12 15:24:48 +0300 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2014-05-12 15:24:48 +0300 |
commit | d76259d08d6e93bed247c2158fcb3740ed4c2dcd (patch) | |
tree | 618de2c2cc1a64dc14233f7332b41771fd462dc7 | |
parent | 82ecd38e7a518e1086d5db355522287d546dcbf7 (diff) |
Remove the hardcoded alert message on WebGL context loss event in library_browser.js, since it prevents applications from benignly handling WebGL context loss events by reloading GL assets from disk.
-rw-r--r-- | src/library_browser.js | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/library_browser.js b/src/library_browser.js index 44e8c473..9c3d54bb 100644 --- a/src/library_browser.js +++ b/src/library_browser.js @@ -322,11 +322,6 @@ mergeInto(LibraryManager.library, { #endif // Set the background of the WebGL canvas to black canvas.style.backgroundColor = "black"; - - // Warn on context loss - canvas.addEventListener('webglcontextlost', function(event) { - alert('WebGL context lost. You will need to reload the page.'); - }, false); } if (setInModule) { GLctx = Module.ctx = ctx; |