aboutsummaryrefslogtreecommitdiff
path: root/src/library_browser.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-05-13 19:39:16 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-05-13 19:39:16 -0700
commitb915f42db8e2b454b8b07e0eb7f8a176fefdc534 (patch)
treec47876949f44fe7213ea52bddc70ba729600f56c /src/library_browser.js
parent17ba5c2b0712b8c871a260f3e1ce00527c5a4d1d (diff)
parent6701e2d57e27e68520b2c1dcd04893336884eccc (diff)
Merge pull request #2348 from juj/context_lost
WebGL context loss handling improvements.
Diffstat (limited to 'src/library_browser.js')
-rw-r--r--src/library_browser.js5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/library_browser.js b/src/library_browser.js
index 07d33b32..4ef7c577 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;