EGL_DEPTH_SIZE should be set

EGL_DEPTH_SIZE needs to be set in order to have an FBO with a depth buffer. Some drivers aren't as strict about this but many are.
This commit is contained in:
Logan McNaughton 2016-08-30 15:29:17 -06:00 committed by GitHub
parent 14cb57ce3b
commit 1beb9e9ffd

View File

@ -114,6 +114,7 @@ static void *android_gfx_ctx_init(void *video_driver)
EGL_GREEN_SIZE, 8,
EGL_RED_SIZE, 8,
EGL_ALPHA_SIZE, 8,
EGL_DEPTH_SIZE, 16,
EGL_NONE
};
#endif