aboutsummaryrefslogtreecommitdiff
path: root/src/library_glut.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-04-03 20:44:43 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-04-03 20:44:43 -0700
commit775e50619c4a5ca1ac97d1861fa24014fbbe72b2 (patch)
treeff1308260c6f137a6ade23496779202fb4f275d4 /src/library_glut.js
parent4a32c17be76a395f23dbaa8a26fb63ecc93651a1 (diff)
throw an exception in glutMainLoop, to prevent atexits from running
Diffstat (limited to 'src/library_glut.js')
-rw-r--r--src/library_glut.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library_glut.js b/src/library_glut.js
index e9329d02..0736d5ae 100644
--- a/src/library_glut.js
+++ b/src/library_glut.js
@@ -293,14 +293,14 @@ var LibraryGLUT = {
}
},
- glutMainLoop__deps: ['$GLUT', 'exit', 'glutPostRedisplay'],
+ glutMainLoop__deps: ['$GLUT', 'glutPostRedisplay'],
glutMainLoop: function() {
if (GLUT.reshapeFunc) {
FUNCTION_TABLE[GLUT.reshapeFunc](Module['canvas'].width,
Module['canvas'].height);
}
_glutPostRedisplay();
- _exit(0); // GLUT mainloop should never return
+ throw 'GLUT mainloop should never return';
},
};