From 803d140502866530aa83099f0acd99b91315716e Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Fri, 27 Jul 2012 16:53:49 +0000 Subject: [PATCH] gpu: don't forget to ask for a depth buffer on GL ES systems. --- src/eglapp.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/eglapp.cpp b/src/eglapp.cpp index 9dd2fe43..c835e662 100644 --- a/src/eglapp.cpp +++ b/src/eglapp.cpp @@ -113,9 +113,13 @@ EglApp::EglApp(char const *title, ivec2 res, float fps) : EGLint attr[] = { EGL_BUFFER_SIZE, 16, - EGL_RENDERABLE_TYPE, + EGL_DEPTH_SIZE, 16, + EGL_RED_SIZE, 4, + EGL_GREEN_SIZE, 4, + EGL_BLUE_SIZE, 4, + EGL_ALPHA_SIZE, 4, #if defined HAVE_GLES_2X - EGL_OPENGL_ES2_BIT, + EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT, #endif EGL_NONE };