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_sdl.js | |
parent | 14c6628d28648cd069a9e0e519cc69513e3d470b (diff) | |
parent | 401a0f394bc901cf955958cb4a0848d03f960239 (diff) |
Merge branch 'webgl_context_attributes' of github.com:anlambert/emscripten into incoming
Diffstat (limited to 'src/library_sdl.js')
-rw-r--r-- | src/library_sdl.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/library_sdl.js b/src/library_sdl.js index 857ab7d4..e652dfc8 100644 --- a/src/library_sdl.js +++ b/src/library_sdl.js @@ -254,9 +254,13 @@ var LibrarySDL = { } var webGLContextAttributes = { - antialias: ((SDL.glAttributes[13 /*SDL_GL_MULTISAMPLEBUFFERS*/] != 0) && (SDL.glAttributes[14 /*SDL_GL_MULTISAMPLESAMPLES*/] > 1)) + antialias: ((SDL.glAttributes[13 /*SDL_GL_MULTISAMPLEBUFFERS*/] != 0) && (SDL.glAttributes[14 /*SDL_GL_MULTISAMPLESAMPLES*/] > 1)), + depth: (SDL.glAttributes[6 /*SDL_GL_DEPTH_SIZE*/] > 0), + stencil: (SDL.glAttributes[7 /*SDL_GL_STENCIL_SIZE*/] > 0) }; + var ctx = Browser.createContext(canvas, useWebGL, usePageCanvas, webGLContextAttributes); + SDL.surfaces[surf] = { width: width, height: height, |