xwayland: EGL_IMG_context_priority required by EGLStream
xwl_glamor_eglstream_init_egl() uses "EGL_IMG_context_priority" extension, make sure it's actually available before using it. Suggested-by: Emil Velikov <emil.velikov@collabora.com> Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
5d843f6947
commit
bdadaa25f5
@ -794,6 +794,12 @@ xwl_glamor_eglstream_init_egl(struct xwl_screen *xwl_screen)
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (!epoxy_has_egl_extension(xwl_screen->egl_display,
|
||||
"EGL_IMG_context_priority")) {
|
||||
ErrorF("EGL_IMG_context_priority not available\n");
|
||||
goto error;
|
||||
}
|
||||
|
||||
eglChooseConfig(xwl_screen->egl_display, config_attribs, &config, 1, &n);
|
||||
if (!n) {
|
||||
ErrorF("No acceptable EGL configs found\n");
|
||||
|
Loading…
Reference in New Issue
Block a user