diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-07-07 12:04:06 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-07-07 12:04:06 -0700 |
commit | 5c5b78441721b22c673895270cb35217a141a8ff (patch) | |
tree | d52a178c57e36af78bf0cd3a626e3b12b0fc596c /src/library_glut.js | |
parent | d94cc315efc9580fa589f184ac07259d4f97ef48 (diff) |
make glut set the global context properly so webgl extensions are initialized
Diffstat (limited to 'src/library_glut.js')
-rw-r--r-- | src/library_glut.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library_glut.js b/src/library_glut.js index b0308acf..d33f8436 100644 --- a/src/library_glut.js +++ b/src/library_glut.js @@ -363,7 +363,7 @@ var LibraryGLUT = { glutCreateWindow__deps: ['$Browser'], glutCreateWindow: function(name) { - Module.ctx = Browser.createContext(Module['canvas'], true); + Module.ctx = Browser.createContext(Module['canvas'], true, true); return 1; }, |