diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-10-27 12:11:04 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-10-27 12:11:04 -0700 |
commit | 4563af3f091d16da991cdb4603cd18d9cce5b640 (patch) | |
tree | 6b0acc69b61b03c208ad76ba9bf6365da926d2a1 /src/library_glut.js | |
parent | 14c6628d28648cd069a9e0e519cc69513e3d470b (diff) | |
parent | 401a0f394bc901cf955958cb4a0848d03f960239 (diff) |
Merge branch 'webgl_context_attributes' of github.com:anlambert/emscripten into incoming
Diffstat (limited to 'src/library_glut.js')
-rw-r--r-- | src/library_glut.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/library_glut.js b/src/library_glut.js index 722ea85c..fefe7bd3 100644 --- a/src/library_glut.js +++ b/src/library_glut.js @@ -427,7 +427,9 @@ var LibraryGLUT = { glutCreateWindow__deps: ['$Browser'], glutCreateWindow: function(name) { var contextAttributes = { - antialias: ((GLUT.initDisplayMode & 0x0080 /*GLUT_MULTISAMPLE*/) != 0) + antialias: ((GLUT.initDisplayMode & 0x0080 /*GLUT_MULTISAMPLE*/) != 0), + depth: ((GLUT.initDisplayMode & 0x0010 /*GLUT_DEPTH*/) != 0), + stencil: ((GLUT.initDisplayMode & 0x0020 /*GLUT_STENCIL*/) != 0) }; Module.ctx = Browser.createContext(Module['canvas'], true, true, contextAttributes); return Module.ctx ? 1 /* a new GLUT window ID for the created context */ : 0 /* failure */; |