mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
[381/906] EGL and GLX:: set a minimum depth size
This commit is contained in:
parent
5fef0569f0
commit
c2c15214a8
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
};
|
};
|
||||||
|
|
|
@ -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
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue