diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-04-02 19:54:17 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-04-02 19:54:17 -0700 |
commit | f15ac75d9cd6f2f1c04671fc404aeeaf912bba73 (patch) | |
tree | 009dd0f42a718ec71ef5f893cd73162708d86eb5 /src/library_gl.js | |
parent | 4b3253624632e40dc0a2b5476f67a2460dfde217 (diff) |
make glut main loop throw again, and fix test_glgears
Diffstat (limited to 'src/library_gl.js')
-rw-r--r-- | src/library_gl.js | 4 |
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 }, }; |