mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +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[] = {
|
||||
GLX_RGBA,
|
||||
GLX_RED_SIZE, 1, GLX_GREEN_SIZE, 1, GLX_BLUE_SIZE, 1,
|
||||
GLX_DEPTH_SIZE, 16,
|
||||
GLX_DOUBLEBUFFER,
|
||||
None
|
||||
};
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue