[381/906] EGL and GLX:: set a minimum depth size

This commit is contained in:
Julien Isorce 2009-10-15 14:59:08 +02:00 committed by Matthew Waters
parent 5fef0569f0
commit c2c15214a8
2 changed files with 2 additions and 0 deletions

View file

@ -247,6 +247,7 @@ gst_gl_window_new (gint width, gint height, gulong external_gl_context)
gint attrib[] = { gint attrib[] = {
GLX_RGBA, GLX_RGBA,
GLX_RED_SIZE, 1, GLX_GREEN_SIZE, 1, GLX_BLUE_SIZE, 1, GLX_RED_SIZE, 1, GLX_GREEN_SIZE, 1, GLX_BLUE_SIZE, 1,
GLX_DEPTH_SIZE, 16,
GLX_DOUBLEBUFFER, GLX_DOUBLEBUFFER,
None None
}; };

View file

@ -255,6 +255,7 @@ gst_gl_window_new (gint width, gint height, gulong external_gl_context)
EGLint config_attrib[] = { EGLint config_attrib[] = {
EGL_SURFACE_TYPE, EGL_WINDOW_BIT, EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT, EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
EGL_DEPTH_SIZE, 16,
EGL_NONE EGL_NONE
}; };