mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
egl: handle configless contexts
With EGL_KHR_no_config_context, EGL contexts may just not have an EGLConfig to give you. Deal with it. Fixes: #858 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1289>
This commit is contained in:
parent
cf871f990a
commit
ffa363edf7
1 changed files with 6 additions and 0 deletions
|
@ -1458,6 +1458,12 @@ gst_gl_context_egl_fill_info (GstGLContext * context, GError ** error)
|
|||
goto failure;
|
||||
}
|
||||
|
||||
if (config_id == 0) {
|
||||
GST_INFO_OBJECT (context, "egl config not available. ID is 0");
|
||||
gst_object_unref (display_egl);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
attrs[0] = EGL_CONFIG_ID;
|
||||
attrs[1] = config_id;
|
||||
attrs[2] = EGL_NONE;
|
||||
|
|
Loading…
Reference in a new issue