diff options
author | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2012-01-24 10:45:58 -0500 |
---|---|---|
committer | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2012-01-24 10:45:58 -0500 |
commit | 9bbb3f7c01a20534181b15645579d851f922aa98 (patch) | |
tree | c3ce0ac8345e0756bd30c7a920970e7a6ba00fde /src | |
parent | 8f17dff1e8ce647ac5b120df4aa2c77b6b2123d9 (diff) |
Pass the correct values to the reshape function
Diffstat (limited to 'src')
-rw-r--r-- | src/library_gl.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/library_gl.js b/src/library_gl.js index 84a1d31e..ee08796e 100644 --- a/src/library_gl.js +++ b/src/library_gl.js @@ -487,7 +487,8 @@ var LibraryGLUT = { } RAF.apply(window, [function() { if (GLUT.reshapeFunc) { - FUNCTION_TABLE[GLUT.reshapeFunc](); + FUNCTION_TABLE[GLUT.reshapeFunc](Module['canvas'].width, + Module['canvas'].height); } if (GLUT.idleFunc) { FUNCTION_TABLE[GLUT.idleFunc](); |