mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
c/main: Detect when config is needed but missing
This commit is contained in:
parent
6c3ab4151a
commit
0452c69caa
|
@ -228,6 +228,11 @@ xrt_gfx_provider_create_gl_egl(struct xrt_compositor_native *xcn,
|
|||
|
||||
gladLoadEGL(display, get_gl_procaddr);
|
||||
|
||||
if (config == EGL_NO_CONFIG_KHR && !EGL_KHR_no_config_context) {
|
||||
EGL_ERROR("config == EGL_NO_CONFIG_KHR && !EGL_KHR_no_config_context");
|
||||
return XRT_ERROR_EGL_CONFIG_MISSING;
|
||||
}
|
||||
|
||||
// On Android this extension is 'hidden'.
|
||||
ensure_native_fence_is_loaded(display, get_gl_procaddr);
|
||||
|
||||
|
|
Loading…
Reference in a new issue