aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Lambert <antoine-e.lambert@thalesgroup.com>2013-10-24 10:33:11 +0200
committerAntoine Lambert <antoine-e.lambert@thalesgroup.com>2013-10-24 10:33:11 +0200
commitdf2cff1542ecb09258724804b29b2013d9dc641b (patch)
tree0026d20856fdfc4252be3a6244f4f08720dbc297
parent125779a983801e63e3d01658c18c73afbbf6945c (diff)
map depth and stencil buffers activation from GLFW to WebGL
-rw-r--r--src/library_glfw.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/library_glfw.js b/src/library_glfw.js
index b0519e39..647d4bb6 100644
--- a/src/library_glfw.js
+++ b/src/library_glfw.js
@@ -355,7 +355,9 @@ var LibraryGLFW = {
}
var contextAttributes = {
- antialias: (GLFW.params[0x00020013] > 1) //GLFW_FSAA_SAMPLES
+ antialias: (GLFW.params[0x00020013] > 1), //GLFW_FSAA_SAMPLES
+ depth: (GLFW.params[0x00020009] > 0), //GLFW_DEPTH_BITS
+ stencil: (GLFW.params[0x0002000A] > 0) //GLFW_STENCIL_BITS
}
Module.ctx = Browser.createContext(Module['canvas'], true, true, contextAttributes);
return 1; //GL_TRUE