From c2c15214a8157abeefe1155ad38945072cf8fb28 Mon Sep 17 00:00:00 2001 From: Julien Isorce Date: Thu, 15 Oct 2009 14:59:08 +0200 Subject: [PATCH] [381/906] EGL and GLX:: set a minimum depth size --- gst-libs/gst/gl/gstglwindow_x11.c | 1 + gst-libs/gst/gl/gstglwindow_x11ES2.c | 1 + 2 files changed, 2 insertions(+) diff --git a/gst-libs/gst/gl/gstglwindow_x11.c b/gst-libs/gst/gl/gstglwindow_x11.c index 3255f90de9..399a669790 100644 --- a/gst-libs/gst/gl/gstglwindow_x11.c +++ b/gst-libs/gst/gl/gstglwindow_x11.c @@ -247,6 +247,7 @@ gst_gl_window_new (gint width, gint height, gulong external_gl_context) gint attrib[] = { GLX_RGBA, GLX_RED_SIZE, 1, GLX_GREEN_SIZE, 1, GLX_BLUE_SIZE, 1, + GLX_DEPTH_SIZE, 16, GLX_DOUBLEBUFFER, None }; diff --git a/gst-libs/gst/gl/gstglwindow_x11ES2.c b/gst-libs/gst/gl/gstglwindow_x11ES2.c index 09649d7ad5..709ea2e333 100644 --- a/gst-libs/gst/gl/gstglwindow_x11ES2.c +++ b/gst-libs/gst/gl/gstglwindow_x11ES2.c @@ -255,6 +255,7 @@ gst_gl_window_new (gint width, gint height, gulong external_gl_context) EGLint config_attrib[] = { EGL_SURFACE_TYPE, EGL_WINDOW_BIT, EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT, + EGL_DEPTH_SIZE, 16, EGL_NONE };