diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-11-01 18:26:58 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-11-01 18:26:58 -0700 |
commit | 3d48329892cd517b2e709ef94a00df8214169ddd (patch) | |
tree | 988d17b59d4fc2473a6d7a63df0f4117b711bcf4 /src/library_glut.js | |
parent | 75af3c1ac8dba93b508b8b431bef9a35e6b054c3 (diff) | |
parent | 2c3d580bf9122ec4aef9ee8d462281d3fd810355 (diff) |
Merge branch 'incoming' into f32
Conflicts:
src/parseTools.js
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 */; |