aboutsummaryrefslogtreecommitdiff
path: root/src/library_gl.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/library_gl.js')
-rw-r--r--src/library_gl.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library_gl.js b/src/library_gl.js
index 1fed366e..6f363458 100644
--- a/src/library_gl.js
+++ b/src/library_gl.js
@@ -1031,14 +1031,14 @@ var LibraryGLUT = {
}
},
- glutMainLoop__deps: ['$GLUT'],
+ glutMainLoop__deps: ['$GLUT', 'exit'],
glutMainLoop: function() {
if (GLUT.reshapeFunc) {
FUNCTION_TABLE[GLUT.reshapeFunc](Module['canvas'].width,
Module['canvas'].height);
}
_glutPostRedisplay();
- //throw "Entering GLUT mainloop";
+ _exit(0); // GLUT mainloop should never return
},
};