Specify EGL_DEPTH_SIZE for emscripten

Some drivers require it to provide a depth buffer.
This commit is contained in:
Logan McNaughton 2016-09-24 19:53:45 -06:00 committed by GitHub
parent d9aaef40cc
commit 4f002f2316

View File

@ -139,6 +139,7 @@ static void *gfx_ctx_emscripten_init(void *video_driver)
EGL_GREEN_SIZE, 8,
EGL_BLUE_SIZE, 8,
EGL_ALPHA_SIZE, 8,
EGL_DEPTH_SIZE, 16,
EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
EGL_NONE
};