aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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';
},
};