mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-22 22:56:25 +00:00
c/client: Print error if we can not query client API type from context
This commit is contained in:
parent
db2cec2916
commit
83d29cfdc7
|
@ -291,6 +291,7 @@ xrt_gfx_provider_create_gl_egl(struct xrt_compositor_native *xcn,
|
||||||
|
|
||||||
EGLint egl_client_type;
|
EGLint egl_client_type;
|
||||||
if (!eglQueryContext(display, context, EGL_CONTEXT_CLIENT_TYPE, &egl_client_type)) {
|
if (!eglQueryContext(display, context, EGL_CONTEXT_CLIENT_TYPE, &egl_client_type)) {
|
||||||
|
EGL_ERROR("Could not query EGL client API type from context: %p", (void *)context);
|
||||||
return XRT_ERROR_OPENGL;
|
return XRT_ERROR_OPENGL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue