Browse Source

gpu: don't forget to ask for a depth buffer on GL ES systems.

legacy
Sam Hocevar sam 12 years ago
parent
commit
803d140502
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      src/eglapp.cpp

+ 6
- 2
src/eglapp.cpp View File

@@ -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
};


Loading…
Cancel
Save