aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2012-03-28 12:40:38 -0400
committerBehdad Esfahbod <behdad@behdad.org>2012-03-28 12:40:38 -0400
commit9f6f96462b2e0e00453a0a32dfcc14d6922254d7 (patch)
treef33cb40f223e47f890a3c735edaee6adc2be171d
parent097aacf68df1b80e716d8a0c8122ffcf781a7263 (diff)
Stop execution in glutMainLoop
Such that the app doesn't tear itself down.
-rw-r--r--src/library_gl.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/library_gl.js b/src/library_gl.js
index 28183d27..8775194e 100644
--- a/src/library_gl.js
+++ b/src/library_gl.js
@@ -698,7 +698,9 @@ var LibraryGLUT = {
FUNCTION_TABLE[GLUT.reshapeFunc](Module['canvas'].width,
Module['canvas'].height);
}
- FUNCTION_TABLE[GLUT.glutPostRedisplay]();
+ // TODO The following line doesn't work, don't know why.
+ //FUNCTION_TABLE[GLUT.glutPostRedisplay]();
+ throw "Entering GLUT mainloop";
},
};